CVEBrief

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.

Exploited in the wild
Yes, CISA KEV
added May 1, 2023, due May 22, 2023, used in ransomware
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
Exploit odds (EPSS)
100.0% in 30 days
higher than 100% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

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?

VendorProductAffectedFixed or not affected from
Apache Software FoundationApache Log4jfrom Apache Log4j2 before 2.16.02.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?

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?

VendorProductVersionsType
apachelog4jfrom 2.0.1 before 2.12.2application
apachelog4jfrom 2.13.0 before 2.16.0application
apachelog4j2.0application
cvatcomputer vision annotation toolall versionsapplication
intelaudio development kitall versionsapplication
inteldatacenter managerall versionsapplication
intelgenomics kernel libraryall versionsapplication
inteloneapiall versionsapplication
intelsecure device onboardall versionsapplication
intelsensor solution firmware development kitall versionsapplication
intelsystem debuggerall versionsapplication
intelsystem studioall versionsapplication
siemenssppa-t3000 ses3000 firmwareall versionsoperating system
siemenscaptialbefore 2019.1application
siemenscaptial2019.1application
siemenscomosall versionsapplication
siemensdesigo cc advanced reports4.0application
siemensdesigo cc advanced reports4.1application
siemensdesigo cc advanced reports4.2application
siemensdesigo cc advanced reports5.0application
siemensdesigo cc advanced reports5.1application
siemensdesigo cc info center5.0application
siemensdesigo cc info center5.1application
siemense-car operation centerbefore 2021-12-13application
siemensenergy engage3.1application

NVD analysis (status Analyzed), last modified June 17, 2026, 04:13 UTC.

How severe is CVE-2021-45046?

ScoreVersionVectorSource
Critical 9.0CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HCISA-ADP
Critical 9.0CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HNVD
Medium 5.1CVSS 2.0AV:N/AC:H/Au:N/C:P/I:P/A:PNVD

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?

Where are the vendor advisories and references?

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?

Every CVE in Apache Log4j

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.