CVE-2021-45046
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.
Weakness
- CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache Log4j2 Deserialization of Untrusted Data Vulnerability |
|---|---|
| Vendor / product | Apache / Log4j2 |
| Date added | 2023-05-01 |
| Federal remediation due date | 2023-05-22 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-04 |
Timeline
- 2021-12-14Published by the CNA16:55 UTC
- 2021-12-14GitHub advisory published (GHSA-7rjr-3q55-vv33)same day
- 2023-05-01Added to the CISA KEV catalog503 days after publication
- 2025-02-04CISA SSVC decision recorded1148 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2021-45046: Apache Log4j2 - Remote Code Injection
GitHub advisory GHSA-7rjr-3q55-vv33, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.apache.logging.log4j:log4j-core | before 2.3.1 | 2.3.1 |
| Maven org.apache.logging.log4j:log4j-core | from 2.13.0 before 2.16.0 | 2.16.0 |
| Maven org.apache.logging.log4j:log4j-core | from 2.4.0 before 2.12.2 | 2.12.2 |
| Maven org.ops4j.pax.logging:pax-logging-log4j2 | from 1.10.0 before 1.10.8 | 1.10.8 |
| Maven org.ops4j.pax.logging:pax-logging-log4j2 | from 1.11.0 before 1.11.11 | 1.11.11 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache log4j | from 2.0.1 before 2.12.2fixed in 2.12.2from 2.13.0 before 2.16.0fixed in 2.16.02.0no fix listed | 2.12.22.16.0not listed |
| cvat computer_vision_annotation_tool | ||
| debian debian_linux | 10.0no fix listed11.0no fix listed | not listednot listed |
| fedoraproject fedora | 34no fix listed35no fix listed | not listednot listed |
| intel audio_development_kit | ||
| intel datacenter_manager | ||
| intel genomics_kernel_library | ||
| intel oneapi | ||
| intel secure_device_onboard | ||
| intel sensor_solution_firmware_development_kit | ||
| intel system_debugger | ||
| intel system_studio | ||
| siemens 6bk1602-0aa12-0tp0_firmware | before 2.7.0fixed in 2.7.0 | 2.7.0 |
| siemens 6bk1602-0aa22-0tp0_firmware | before 2.7.0fixed in 2.7.0 | 2.7.0 |
| siemens 6bk1602-0aa32-0tp0_firmware | before 2.7.0fixed in 2.7.0 | 2.7.0 |
| siemens 6bk1602-0aa42-0tp0_firmware | before 2.7.0fixed in 2.7.0 | 2.7.0 |
| siemens 6bk1602-0aa52-0tp0_firmware | before 2.7.0fixed in 2.7.0 | 2.7.0 |
| siemens captial | before 2019.1fixed in 2019.12019.1no fix listed | 2019.1not listed |
| siemens comos | ||
| siemens desigo_cc_advanced_reports | 4.0no fix listed4.1no fix listed4.2no fix listed5.0no fix listed5.1no fix listed | not listednot listednot listednot listednot listed |
References
- https://www.oracle.com/security-alerts/cpujan2022.html
- 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://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd
- https://www.debian.org/security/2021/dsa-5022
- http://www.openwall.com/lists/oss-security/2021/12/14/4
- http://www.openwall.com/lists/oss-security/2021/12/15/3
- http://www.openwall.com/lists/oss-security/2021/12/18/1
- 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://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032
- https://security.gentoo.org/glsa/202310-16
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046
- https://www.cve.org/CVERecord?id=CVE-2021-44228
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html
- https://www.kb.cert.org/vuls/id/930724
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-45046'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-45046'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-45046'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-45046'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-45046'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).