CVE-2021-45046
Log4Shell
Exploitation confirmed. First attested on 2023-05-01 by CISA-ADP, CISA KEV, GCVE · kevintel.
- Published2021-12-14
- Fixed in2.16.0 · 2.12.2 · 2.3.1
- TwinCVE-2021-44228
- WeaknessCWE-917
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTCObserved activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-45046?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-45046?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.x | ≥ 2.13.0, < 2.16.0 | 2.16.0 | NVD · OSV |
| 2.x | ≥ 2.0.1, < 2.12.2 | 2.12.2 | NVD |
| 2.x | ≥ 2.4.0, < 2.12.2 | 2.12.2 | OSV |
| 2.3 | < 2.3.1 | 2.3.1 | OSV |
| 2.0 | = 2.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.0 | = 4.0 | no fix published | NVD |
| 4.1 | = 4.1 | no fix published | NVD |
| 4.2 | = 4.2 | no fix published | NVD |
| 5.0 | = 5.0 | no fix published | NVD |
| 5.1 | = 5.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.5 | = 8.5 | no fix published | NVD |
| 8.6 | = 8.6 | no fix published | NVD |
| 8.7 | = 8.7 | no fix published | NVD |
| 9.0 | = 9.0 | no fix published | NVD |
53 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache Log4jAffected
- ≥ Apache Log4j2, < 2.16.0fixed in 2.16.0custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-10-26
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apache-log4j2Ubuntu:20.04:LTSall versions · fixed in 2.16.0-0.20.04.1
- apache-log4j2Debian:14all versions · fixed in 2.16.0-1
- apache-log4j2Debian:13all versions · fixed in 2.16.0-1
- apache-log4j2Debian:12all versions · fixed in 2.16.0-1
- apache-log4j2Debian:11all versions · fixed in 2.16.0-1~deb11u1
- apache-log4j2Debian:10all versions · fixed in 2.16.0-1~deb10u1
- disruptoropenSUSE:Leap 15.3all versions · fixed in 3.4.4-3.3.1
- disruptoropenSUSE:Leap 15.2all versions · fixed in 3.4.4-lp152.2.3.1
33 more package ranges on OSV.dev
Vendor advisories
log4j-core: DoS in log4j 2.x with thread context message pattern and context lookup pattern (incomplete fix for CVE-2021-44228)
log4j-core as a component of Red Hat Integration Camel Quarkus 1 · opendaylight as a component of Red Hat OpenStack Platform 13 (Queens) · opendaylight.src as a component of Red Hat OpenStack Platform 13 (Queens) · +1 more
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.3.12 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.1.9 on RHEL 7 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.4 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.4 security update
Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.4 security update
22 more advisories
Fix
- Update Apache Log4j to 2.16.0 · 2.12.2 · 2.3.1
- CISA’s required action: Apply updates per vendor instructions.due 2023-05-22
- Vendor fix Red Hat Product Security RHSA-2025:1747 · 52 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
- Vendor fix Red Hat Product Security RHSA-2025:1746 · 37 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. Also, back up your existing installation, including all applications, configuration files, databases and database settings. For details on how to apply this update, refer to: https://access…
- Vendor fix Red Hat Product Security RHSA-2022:1299 · 1 productBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. The References section of this erratum contains a download link (you must log in to download the update).
- Vendor fix Red Hat Product Security RHSA-2022:1297 · 2 productsBefore applying this update, back up your existing Red Hat JBoss Enterprise Application Platform installation and deployed applications. For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:0223 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2022:0222 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
Advisories and patches
- www.openwall.comMitigation
- lists.fedoraproject.orgRelease Notes
- lists.fedoraproject.orgRelease Notes
- logging.apache.orgMitigation · Release Notes · Vendor Advisory
- www.oracle.comPatch
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 11 repositories, unverifiedcckuailong/Log4j_CVE-2021-45046BobTheShoplifter/CVE-2021-45046-Infotejas-nagchandi/CVE-2021-45046pravin-pp/log4j2-CVE-2021-45046mergebase/log4j-samples PoC-in-GitHub
- Metasploit modules
- 1 moduleauxiliary/scanner/http/log4shell_scannerrank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2023-05-01
- Patch Due Date
- 2023-05-22
- Ransomware Use
- Known
- Required Action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2023-05-01
- ENISA EUVDexploitation2023-05-012023-05-01
- GCVEexploitation2023-05-01
- CISA-ADPSSVC decisionactive2025-02-04
- OpenCVESSVC decisionactive—
- CISA-ADPCVSS 3.192025-02-04
- NVDCVSS 3.19read 2026-10-23
- NVDCVSS 2.05.1read 2026-10-23
- CNAweakness (CWE)CWE-917known since 2026-10-23
- NVDweakness (CWE)CWE-917read 2026-10-23
- FIRST EPSSEPSS score99.9 %read 2026-11-03
- PoC-in-GitHubproof of concept11read 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2021-12-14
Identifiers
- EUVD-2021-34769same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-7rjr-3q55-vv33same flawGitHub Advisory Database · CC-BY-4.0
- MINI-x4gq-qjph-q7m9same flawMinimOS · LicenseRef-unstated
- auxiliary/scanner/http/log4shell_scannerexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- DSA-5022-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0566advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1467advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2021-1474advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2022-1957advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:1601-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:4094-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:4107-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11681-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:1296advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:1297advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:1746advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:1747advisory covering several CVEsRed Hat · CC-BY-4.0
- USN-5197-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- Published
- 2021-12-14
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-7rjr-3q55-vv33
Frequently asked questions
What is CVE-2021-45046?
Is CVE-2021-45046 actively exploited?
What is the CVSS score for CVE-2021-45046?
Running Apache Log4j? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-7rjr-3q55-vv33
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0