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.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Apache Log4j to 2.16.0 or a later version.
- Update Log4j to 2.12.2 or 2.16.0, whichever matches your release line, or a later version.
- Update Captial to 2019.1 or a later version.
- CISA's required action: Apply updates per vendor instructions.
- Read the advisory on logging.apache.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Apache | Apache Log4j | Apache Log4j2 up to, but not including, 2.16.0 | 2.16.0 |
| Apache | Log4j | 2.0.1 up to, but not including, 2.12.2; 2.13.0 up to, but not including, 2.16.0; 2.0 | 2.12.2, 2.16.0 |
| Cvat | Computer Vision Annotation Tool | Not specified in the record | Not stated |
| Intel | Audio Development Kit | Not specified in the record | Not stated |
| Intel | Datacenter Manager | Not specified in the record | Not stated |
| Intel | Genomics Kernel Library | Not specified in the record | Not stated |
| Intel | Oneapi | Not specified in the record | Not stated |
| Intel | Secure Device Onboard | Not specified in the record | Not stated |
| Intel | Sensor Solution Firmware Development Kit | Not specified in the record | Not stated |
| Intel | System Debugger | Not specified in the record | Not stated |
| Intel | System Studio | Not specified in the record | Not stated |
| Siemens | Sppa-t3000 Ses3000 Firmware | Not specified in the record | Not stated |
| Siemens | Captial | before 2019.1; 2019.1 | 2019.1 |
| Siemens | Comos | Not specified in the record | Not stated |
| Siemens | Desigo Cc Advanced Reports | 4.0; 4.1; 4.2; 5.0; 5.1 | Not stated |
| Siemens | Desigo Cc Info Center | 5.0; 5.1 | Not stated |
| Siemens | E-car Operation Center | before 2021-12-13 | 2021-12-13 |
| Siemens | Energy Engage | 3.1 | Not stated |
| Siemens | Energyip | 8.5; 8.6; 8.7; 9.0 | Not stated |
| Siemens | Energyip Prepay | 3.7; 3.8 | Not stated |
| Siemens | Gma-manager | before 8.6.2j-398 | 8.6.2j-398 |
| Siemens | Head-end System Universal Device Integration System | Not specified in the record | Not stated |
| Siemens | Industrial Edge Management | Not specified in the record | Not stated |
| Siemens | Industrial Edge Management Hub | before 2021-12-13 | 2021-12-13 |
| Siemens | Logo! Soft Comfort | Not specified in the record | Not 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 system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.0 | Critical | NVD |
| CVSS 3.1 | 9.0 | Critical | CISA (ADP) |
| CVSS 2.0 | 5.1 | Medium | NVD |
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.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- logging.apache.org/log4j/2.x/security.htmlMitigation, Release Notes
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032Third Party Advisory
Patches and release notes
- openwall.com/lists/oss-security/2021/12/14/4Mailing List, Mitigation, Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUD…Mailing List, Release Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4…Mailing List, Release Notes
- oracle.com/security-alerts/cpujan2022.htmlThird Party Advisory
Third-party and government advisories
- openwall.com/lists/oss-security/2021/12/15/3Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2021/12/18/1Mailing List, Third Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-397453.pdfThird Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-479842.pdfThird Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-661247.pdfThird Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-714170.pdfThird Party Advisory
- security.gentoo.org/glsa/202310-16Third Party Advisory
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbdThird Party Advisory
- debian.org/security/2021/dsa-5022Third Party Advisory
- intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.htmlThird Party Advisory
- kb.cert.org/vuls/id/930724Third Party Advisory, US Government Resource
- oracle.com/security-alerts/alert-cve-2021-44228.htmlThird Party Advisory
- oracle.com/security-alerts/cpuapr2022.htmlThird Party Advisory
- oracle.com/security-alerts/cpujul2022.htmlThird Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046US Government Resource
Other references
- cve.org/CVERecord?id=CVE-2021-44228Not Applicable
Other vulnerabilities in Apache Log4j
- 7.5 High severity
Recent Improper Neutralization of Special Elements used in an Expression Language Statement vulnerabilities
- 10.0 Critical severity
Apache Log4j2 Remote Code Execution Exploited
- 9.8 Critical severity
- 9.8 Critical severity
Apache Struts Remote Code Execution Exploited
- 8.8 High severity
- 8.8 High severity
Spotted an error? Tell us.