Apache Log4j 2.0 vulnerabilities

8 published vulnerabilities affect Apache Log4j 2.0, 2 of them known to be exploited in the wild.

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

What to upgrade to

The newest Apache Log4j release we know of is 2.26.1, with no known CVEs.

Upgrade toFixesStill openNew in that release
2.26.1newest releaseall 82 exploited, 3 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.0

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-44228Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints10.0Exploited100%2.3.1vendor advisory
CVE-2021-45046Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack9.0Exploited100%2.3.1vendor advisory
CVE-2017-5645In Apache Log4j 2.x before 2.8.2, when using the TCP socket server or UDP socket server to receive serialized log events from another application, a specially…9.8Proof of concept89%2.8.2NVD
CVE-2021-44832Apache Log4j2 vulnerable to RCE via JDBC Appender when attacker controls configuration6.6None known98%–NVD
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-2021-45105Apache Log4j2 does not always protect from infinite recursion in lookup evaluation5.9None known100%2.3.1vendor advisory
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

Fixed since 2.0-rc2

2 CVEs that affect 2.0-rc2, the release before it, do not affect 2.0 (1 critical):

  • CVE-2020-9493 Java deserialization in Chainsaw CVSS 9.8
  • CVE-2022-23307 A deserialization flaw in the Chainsaw component of Log4j 1 can lead to malicious code execution. CVSS 8.8

1 CVE affects 2.0 and not 2.0-rc2: CVE-2017-5645.

Other Apache Log4j 2.0 releases

2.0-rc29 2.0-rc19 2.0-rc1-rc18

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 1 December 2026.