Apache Log4j 2.12.2 vulnerabilities

8 published vulnerabilities affect Apache Log4j 2.12.2, 1 of them known to be exploited in the wild. The 2.12 line no longer gets security fixes.

8CVEs
1critical (CVSS 9+)
2high (CVSS 7–8.9)
1exploited in the wild

What to upgrade to

The newest release on the 2.12 line is 2.12.4, with 4 known CVEs. The newest Apache Log4j release we know of is 2.26.1, with no known CVEs.

Upgrade toFixesStill openNew in that release
2.12.4newest 2.12 release4 of 81 exploited, 1 critical4CVE-2026-34480, CVE-2026-34479, CVE-2026-34477 and 1 morenone
2.26.1newest releaseall 81 exploited, 1 criticalnonenone

"Fixes": CVEs on this page that don't affect that release. "New in that release": CVEs that affect it and not this one.

CVEs affecting Apache Log4j 2.12.2

Worst first: ranked by Dawnsentry's score for a device that faces the internet (CVSS, plus known exploitation and EPSS). "Fixed in" is the first release that carries the fix, where the source names one.

CVECVSSExploitationEPSSFixed in
CVE-2021-45046Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack9.0Exploited100%2.12.3vendor advisory
CVE-2021-44832Apache Log4j2 vulnerable to RCE via JDBC Appender when attacker controls configuration6.6None known98%2.12.4NVD
CVE-2026-34480Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters7.5None known1%2.25.4CVE record
CVE-2026-34479Apache Log4j 1 to Log4j 2 bridge: Silent log event loss in Log4j1XmlLayout due to unescaped XML 1.0 forbidden characters7.5None knownunder 1%2.25.4NVD
CVE-2021-45105Apache Log4j2 does not always protect from infinite recursion in lookup evaluation5.9None known100%2.12.3vendor advisory
CVE-2026-34477Apache Log4j Core: verifyHostName attribute silently ignored in TLS configuration, allowing hostname verification bypass5.9None knownunder 1%2.25.4CVE record
CVE-2025-68161Apache Log4j Core: Missing TLS hostname verification in Socket appender4.8None knownunder 1%2.25.3CVE record
CVE-2020-9488Improper validation of certificate with host mismatch in Apache Log4j SMTP appender3.7None known9%2.12.3CVE record

Support for the 2.12 line

The 2.12 line was first released 26 June 2019. Security fixes for it ended 14 December 2021, so vulnerabilities found since then stay open on every 2.12 release. Its latest release is 2.12.4. Dates and latest release from endoflife.date.

Other Apache Log4j 2.12 releases

2.12.44 2.12.35

All Apache Log4j versions

How this list is made

These are the CVEs Dawnsentry matches to each Apache Log4j version, with the same engine its customers use. Where the vendor publishes its own advisory, that decides whether a version is affected, down to hotfix level; otherwise the CVE record and NVD's version data decide. CVSS comes from NVD or the reporting organisation, exploitation from CISA's Known Exploited Vulnerabilities catalogue, CISA's ratings, Metasploit and Nuclei, and EPSS (the probability of exploitation in the next 30 days) from FIRST. The list is rebuilt every day. Always confirm against the vendor's advisory before you act on it.

Updated 2 December 2026.