Home / Apache Software Foundation / Apache Log4j / CVE-2021-45046
CVE-2021-45046: is it exploited, and which versions of Apache Software Foundation Apache Log4j are affected and fixed?
CVE-2021-45046 is an improper Neutralization of Special Elements used in an Expression Language Statement vulnerability in Apache Software Foundation Apache Log4j, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on May 1, 2023, with a federal due date of May 22, 2023. Affected: org.apache.logging.log4j:log4j-core from 2.13.0 before 2.16.0, org.apache.logging.log4j:log4j-core from 2.4.0 before 2.12.2, org.ops4j.pax.logging:pax-logging-log4j2 from 1.8.0 before 1.9.2 and 4 more (GitHub advisory GHSA-7rjr-3q55-vv33). Fixed in 2.16.0, 2.12.2, 1.9.2, 1.10.8 and 2 more (GitHub advisory GHSA-7rjr-3q55-vv33). Severity: Critical (9.0, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:52 UTC.
What is CVE-2021-45046?
Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack
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.
From the CVE record by apache, last updated October 21, 2025, 23:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j | from Apache Log4j2 before 2.16.0 | 2.16.0 |
As the CVE record by apache states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.apache.logging.log4j:log4j-core | >= 2.13.0, < 2.16.0 | 2.16.0 | GHSA-7rjr-3q55-vv33 |
| Maven | org.apache.logging.log4j:log4j-core | >= 2.4.0, < 2.12.2 | 2.12.2 | GHSA-7rjr-3q55-vv33 |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 1.8.0, < 1.9.2 | 1.9.2 | GHSA-7rjr-3q55-vv33 |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 1.10.0, < 1.10.8 | 1.10.8 | GHSA-7rjr-3q55-vv33 |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 1.11.0, < 1.11.11 | 1.11.11 | GHSA-7rjr-3q55-vv33 |
| Maven | org.ops4j.pax.logging:pax-logging-log4j2 | >= 2.0.0, < 2.0.12 | 2.0.12 | GHSA-7rjr-3q55-vv33 |
| Maven | org.apache.logging.log4j:log4j-core | < 2.3.1 | 2.3.1 | GHSA-7rjr-3q55-vv33 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 2, 2026. Summary: Incomplete fix for Apache Log4j vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | log4j | from 2.0.1 before 2.12.2 | application |
| apache | log4j | from 2.13.0 before 2.16.0 | application |
| apache | log4j | 2.0 | application |
| cvat | computer vision annotation tool | all versions | application |
| intel | audio development kit | all versions | application |
| intel | datacenter manager | all versions | application |
| intel | genomics kernel library | all versions | application |
| intel | oneapi | all versions | application |
| intel | secure device onboard | all versions | application |
| intel | sensor solution firmware development kit | all versions | application |
| intel | system debugger | all versions | application |
| intel | system studio | all versions | application |
| siemens | sppa-t3000 ses3000 firmware | all versions | operating system |
| siemens | captial | before 2019.1 | application |
| siemens | captial | 2019.1 | application |
| siemens | comos | all versions | application |
| siemens | desigo cc advanced reports | 4.0 | application |
| siemens | desigo cc advanced reports | 4.1 | application |
| siemens | desigo cc advanced reports | 4.2 | application |
| siemens | desigo cc advanced reports | 5.0 | application |
| siemens | desigo cc advanced reports | 5.1 | application |
| siemens | desigo cc info center | 5.0 | application |
| siemens | desigo cc info center | 5.1 | application |
| siemens | e-car operation center | before 2021-12-13 | application |
| siemens | energy engage | 3.1 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 04:13 UTC.
How severe is CVE-2021-45046?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | CISA-ADP |
| Critical 9.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | NVD |
| Medium 5.1 | CVSS 2.0 | AV:N/AC:H/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-45046 exploited in the wild?
- CISA KEV
- Listed as Apache Log4j2 Deserialization of Untrusted Data Vulnerability, added May 1, 2023; federal agencies must act by May 22, 2023
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Known
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, February 4, 2025)
- EPSS
- 100.0% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement
- CWE-502 Deserialization of Untrusted Data
Where are the vendor advisories and references?
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032 x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/alert-cve-2021-44228.html x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2021-44228 x_refsource_MISC
- [oss-security] 20211214 CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack mailing-list, x_refsource_MLIST
- https://logging.apache.org/log4j/2.x/security.html x_refsource_CONFIRM
- VU#930724 third-party-advisory, x_refsource_CERT-VN
- https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf x_refsource_CONFIRM
- https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html x_refsource_CONFIRM
- 20211210 Vulnerabilities in Apache Log4j Library Affecting Cisco Products: December 2021 vendor-advisory, x_refsource_CISCO
- [oss-security] 20211215 Re: CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack mailing-list, x_refsource_MLIST
- https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf x_refsource_CONFIRM
- DSA-5022 vendor-advisory, x_refsource_DEBIAN
- [oss-security] 20211218 Re: CVE-2021-45046: Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack mailing-list, x_refsource_MLIST
- https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf x_refsource_CONFIRM
- https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf x_refsource_CONFIRM
- FEDORA-2021-5c9d12a93e vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-abbe24e41c vendor-advisory, x_refsource_FEDORA
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://security.gentoo.org/glsa/202310-16
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-45046 government-resource
When was it published, and where is the official record?
- Reserved
- December 14, 2021
- Published
- December 14, 2021, 16:55 UTC
- CVE record updated
- October 21, 2025, 23:25 UTC by apache
- NVD
- Analyzed, last modified June 17, 2026, 04:13 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:52 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Apache Log4j?
- Mar 10, 2023CVE-2023-26464 Apache Software Foundation Apache Log4j: deserialization of untrusted data
- Apr 17, 2017CVE-2017-5645 Apache Software Foundation Apache Log4j: deserialization of untrusted data
Questions about CVE-2021-45046
Is CVE-2021-45046 exploited in the wild?
Yes. CISA added CVE-2021-45046 to its Known Exploited Vulnerabilities catalog on May 1, 2023 and set federal agencies a due date of May 22, 2023. CISA lists it as used in ransomware campaigns. FIRST's EPSS gives it a 100.0% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Log4j are affected by CVE-2021-45046?
org.apache.logging.log4j:log4j-core from 2.13.0 before 2.16.0, org.apache.logging.log4j:log4j-core from 2.4.0 before 2.12.2, org.ops4j.pax.logging:pax-logging-log4j2 from 1.8.0 before 1.9.2, org.ops4j.pax.logging:pax-logging-log4j2 from 1.10.0 before 1.10.8, org.ops4j.pax.logging:pax-logging-log4j2 from 1.11.0 before 1.11.11, org.ops4j.pax.logging:pax-logging-log4j2 from 2.0.0 before 2.0.12 and 1 more, per the GitHub advisory GHSA-7rjr-3q55-vv33. The tables above give every range the sources list.
Which version fixes CVE-2021-45046?
2.16.0, 2.12.2, 1.9.2, 1.10.8, 1.11.11 and 2.0.12, per the GitHub advisory GHSA-7rjr-3q55-vv33. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-45046?
Critical (9.0, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-45046?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.