Apache Log4j 2.21.0 vulnerabilities
7 published vulnerabilities affect Apache Log4j 2.21.0.
What to upgrade to
The newest release on the 2.21 line is 2.21.1, with 7 known CVEs. The newest Apache Log4j release we know of is 2.26.1, with no known CVEs.
| Upgrade to | Fixes | Still open | New in that release |
|---|---|---|---|
| 2.21.1newest 2.21 release | none | 7CVE-2026-34481, CVE-2026-34480, CVE-2026-34479 and 4 more | none |
| 2.26.1newest release | all 7 | none | none |
"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.21.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.
| CVE | CVSS | Exploitation | EPSS | Fixed in |
|---|---|---|---|---|
| CVE-2026-34481Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout | 7.5 | None known | under 1% | 2.25.4NVD |
| CVE-2026-34480Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters | 7.5 | None known | 1% | 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 characters | 7.5 | None known | under 1% | 2.25.4NVD |
| CVE-2026-34478Apache Log4j Core: Log injection in Rfc5424Layout due to silent configuration incompatibility | 7.5 | None known | 1% | 2.25.4CVE record |
| CVE-2026-49844Apache Log4j API: Improper serialization of non-finite floating-point values in MapMessage.asJson() | 5.9 | None known | under 1% | 2.25.5NVD |
| CVE-2026-34477Apache Log4j Core: verifyHostName attribute silently ignored in TLS configuration, allowing hostname verification bypass | 5.9 | None known | under 1% | 2.25.4CVE record |
| CVE-2025-68161Apache Log4j Core: Missing TLS hostname verification in Socket appender | 4.8 | None known | under 1% | 2.25.3CVE record |
Other Apache Log4j 2.21 releases
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.