Apache Log4j2 contains a deserialization of untrusted data vulnerability due to the incomplete fix of CVE-2021-44228, where the Thread Context Lookup Pattern is vulnerable to remote code execution in certain non-default configurations.
In short
CVE-2021-45046 (Apache Log4j2 Deserialization of Untrusted Data) has a CVSS 3.1 base score of 9.0, rated critical. CISA added it to the Known Exploited Vulnerabilities catalog on 1 May 2023, and it has been used in ransomware campaigns. Fixed in Apache Log4j 2.12.2, Siemens Captial 2019.1, Siemens E-car Operation Center 2021-12-13 or later.
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.
CVSS 3.1 breakdown
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HAffected products
- Apache Log4j≥ 2.0.1 < 2.12.2 · ≥ 2.13.0 < 2.16.0 · 2.0
- Cvat Computer Vision Annotation Toolall versions
- Intel Audio Development Kitall versions
- Intel Datacenter Managerall versions
- Intel Genomics Kernel Libraryall versions
- Intel Oneapiall versions
- Intel Secure Device Onboardall versions
- Intel Sensor Solution Firmware Development Kitall versions
- Intel System Debuggerall versions
- Intel System Studioall versions
- Siemens Captial< 2019.1 · 2019.1
- Siemens Comosall versions
- Siemens Desigo Cc Advanced Reports4.0 · 4.1 · 4.2 · 5.0
- Siemens Desigo Cc Info Center5.0 · 5.1
- Siemens E-car Operation Center< 2021-12-13
- Siemens Energy Engage3.1
- Siemens Energyip8.5 · 8.6 · 8.7 · 9.0
- Siemens Energyip Prepay3.7 · 3.8
- Siemens Gma-manager< 8.6.2j-398
- Siemens Head-end System Universal Device Integration Systemall versions
- Siemens Industrial Edge Managementall versions
- Siemens Industrial Edge Management Hub< 2021-12-13
- Siemens Logo! Soft Comfortall versions
- Siemens Mendixall versions
Remediation
Fixed in- Apache Log4j≥ 2.12.2
- Siemens Captial≥ 2019.1
- Siemens E-car Operation Center≥ 2021-12-13
- Siemens Gma-manager≥ 8.6.2j-398
- Siemens Industrial Edge Management Hub≥ 2021-12-13
- Siemens Mindsphere≥ 2021-12-11
- Siemens Navigator≥ 2021-12-13
- Siemens Solid Edge Harness Design≥ 2020
- Siemens Spectrum Power 4≥ 4.70
- Siemens Spectrum Power 7≥ 2.30
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKPQGV24RRBBI4TBZUDQMM4MEH7MXCY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SIG7FZULMNK2XF6FZRU4VWYDQXNMUGAJ/
- https://logging.apache.org/log4j/2.x/security.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://security.gentoo.org/glsa/202310-16
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
and 12 more references
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
