CVE-2021-45046: Apache Log4j2 Deserialization of Untrusted Data Vulnerability
Vulnerability summary
CVE-2021-45046 is a critical (CVSS 9.0) Expression Language Injection vulnerability in Apache Log4j2. It is known to be exploited: CISA lists it, first on 01-05-2023. It has been used in ransomware campaigns. EPSS estimates a 99.98% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 9 · Related 5Timeline
- 14-12-2021PublishedVulnerability first disclosed.
- 01-05-2023Added to CISA KEVApache Log4j2 Deserialization of Untrusted Data Vulnerability
- 22-05-2023CISA remediation dueApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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 metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- OSV · MavenEcosystem advisory · calculated9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST9.0CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
99.98%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 99.98% on 18-09-2026
Known exploited
Compare KEV catalogs- Added
- 01-05-2023
- Federal due date
- 22-05-2023
CISA required action
Apply updates per vendor instructions. logging.apache.org/log4j/2.x/security.html nvd.nist.gov/vuln/detail/CVE-2021-45046
Public exploits
1 foundLog4Shell HTTP Scanner
auxiliary/scanner/http/log4shell_scanner
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Siemens29 products
- 6bk1602-0aa12-0tp0_firmware< 2.7.0
- 6bk1602-0aa22-0tp0_firmware< 2.7.0
- 6bk1602-0aa32-0tp0_firmware< 2.7.0
- 6bk1602-0aa42-0tp0_firmware< 2.7.0
- 6bk1602-0aa52-0tp0_firmware< 2.7.0
Intel8 products
Debian2 products
- apache-log4j2< 2.16.0-1 | < 2.16.0-1~deb10u1 | < 2.16.0-1~deb11u1
- debian_linuxEOL10.0 | 11.0
Apache1 product
- log4j≥ 2.0.1, < 2.12.2 | ≥ 2.13.0, < 2.16.0 | 2.0 | 2.0:beta9 | 2.0:rc1 | 2.0:rc2
Apache software foundation1 product
- apache log4j≥ Apache Log4j2, < 2.16.0
Cvat1 product
Fedoraproject1 product
- fedoraEOL34 | 35
Mageia1 product
- log4j< 2.16.0-1.mga8
Org.apache.logging.log4j1 product
- log4j-core≥ 2.13.0, < 2.16.0 | ≥ 2.4.0, < 2.12.2 | < 2.3.1
Org.ops4j.pax.logging1 product
- pax-logging-log4j2≥ 1.8.0, < 1.9.2 | ≥ 1.10.0, < 1.10.8 | ≥ 1.11.0, < 1.11.11 | ≥ 2.0.0, < 2.0.12
Sonicwall1 product
- email_security< 10.0.12
Ubuntu1 product
- apache-log4j2< 2.16.0-0.20.04.1
12 vendors · 48 products
References
42 links- www.openwall.com/lists/oss-security/2021/12/14/4Mailing ListX Refsource MLISTMitigationThird Party Advisory
- logging.apache.org/log4j/2.x/security.htmlX Refsource CONFIRMWEBMitigationRelease NotesVendor Advisory
- www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.htmlX Refsource CONFIRMWEBThird Party Advisory
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbdVendor AdvisoryX Refsource CISCOThird Party Advisory
Show all 42 references
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046Government ResourceWEBUS Government Resource