CyberSecBulletin
CVE-2021-45046Exploited in the wildNVD status: Analyzed

Apache Log4j2 Deserialization of Untrusted Data

CVE-2021-45046 is a critical-severity improper neutralization of special elements used in an expression language statement vulnerability in Apache Log4j from Apache, with a CVSS 3.1 base score of 9.0 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 2.16.0 as the first without the flaw, so updating Apache Log4j to that release or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on May 1, 2023, which means attacks have been observed in the wild, including in ransomware campaigns.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Update Apache Log4j to 2.16.0 or a later version.
  2. Update Log4j to 2.12.2 or 2.16.0, whichever matches your release line, or a later version.
  3. Update Captial to 2019.1 or a later version.
  4. CISA's required action: Apply updates per vendor instructions.
  5. Read the advisory on logging.apache.org for workarounds and exact fixed builds.
  6. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
ApacheApache Log4jApache Log4j2 up to, but not including, 2.16.02.16.0
ApacheLog4j2.0.1 up to, but not including, 2.12.2; 2.13.0 up to, but not including, 2.16.0; 2.02.12.2, 2.16.0
CvatComputer Vision Annotation ToolNot specified in the recordNot stated
IntelAudio Development KitNot specified in the recordNot stated
IntelDatacenter ManagerNot specified in the recordNot stated
IntelGenomics Kernel LibraryNot specified in the recordNot stated
IntelOneapiNot specified in the recordNot stated
IntelSecure Device OnboardNot specified in the recordNot stated
IntelSensor Solution Firmware Development KitNot specified in the recordNot stated
IntelSystem DebuggerNot specified in the recordNot stated
IntelSystem StudioNot specified in the recordNot stated
SiemensSppa-t3000 Ses3000 FirmwareNot specified in the recordNot stated
SiemensCaptialbefore 2019.1; 2019.12019.1
SiemensComosNot specified in the recordNot stated
SiemensDesigo Cc Advanced Reports4.0; 4.1; 4.2; 5.0; 5.1Not stated
SiemensDesigo Cc Info Center5.0; 5.1Not stated
SiemensE-car Operation Centerbefore 2021-12-132021-12-13
SiemensEnergy Engage3.1Not stated
SiemensEnergyip8.5; 8.6; 8.7; 9.0Not stated
SiemensEnergyip Prepay3.7; 3.8Not stated
SiemensGma-managerbefore 8.6.2j-3988.6.2j-398
SiemensHead-end System Universal Device Integration SystemNot specified in the recordNot stated
SiemensIndustrial Edge ManagementNot specified in the recordNot stated
SiemensIndustrial Edge Management Hubbefore 2021-12-132021-12-13
SiemensLogo! Soft ComfortNot specified in the recordNot stated

Version data comes from the organisation that assigned the CVE; 31 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
HighSuccess depends on conditions outside the attacker's control.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
ChangedThe attack can reach beyond the vulnerable component into other systems.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.19.0CriticalNVD
CVSS 3.19.0CriticalCISA (ADP)
CVSS 2.05.1MediumNVD

Official description

It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in an information leak and remote code execution in some environments and local code execution in all environments. Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) fix this issue by removing support for message lookup patterns and disabling JNDI functionality by default.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Neutralization of Special Elements used in an Expression Language Statement

The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

How developers prevent this class of flaw

  • Avoid adding user-controlled data into an expression interpreter when possible.
  • If user-controlled data must be added to an expression interpreter, one or more of the following should be performed: Validate that the user input will not evaluate as an expression Encode the user input in a way that ensures it is not evaluated as an expression
  • The framework or tooling might allow the developer to disable or deactivate the processing of EL expressions, such as setting the isELIgnored attribute for a JSP page to true.

More Improper Neutralization of Special Elements used in an Expression Language Statement vulnerabilities (CWE-917)

Timeline

  1. CVE record published.
  2. Added to CISA's Known Exploited Vulnerabilities catalogue.
  3. Deadline for US federal agencies to remediate, set by CISA.
  4. CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
  5. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other references

Other vulnerabilities in Apache Log4j

All Apache Log4j vulnerabilities

Recent Improper Neutralization of Special Elements used in an Expression Language Statement vulnerabilities

Spotted an error? Tell us.