CVE-2026-34480Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.2% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.2%
- percentile 69%
- Fix
- Named by a source
- CVE published 10 Apr 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.2% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- org.apache.logging.log4j:log4j-core (Maven): upgrade to 2.25.4 or later on your release line.
- Patch: https://github.com/apache/logging-log4j2/pull/4077
- Advisory: https://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhb
- Advisory: https://logging.apache.org/security.html#CVE-2026-34480
- Advisory: http://www.openwall.com/lists/oss-security/2026/04/10/9
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-34480
Who should check
org.apache.logging.log4j:log4j-core (Maven) pkg:maven/org.apache.logging.log4j/log4j-core
- Affected>= 2.0-alpha1, < 2.25.4Fixed in2.25.4OSV (GHSA-3pxv-7cmr-fjr4)
- Affected>= 3.0.0-alpha1, <= 3.0.0-beta3Last known affected3.0.0-beta3OSV (GHSA-3pxv-7cmr-fjr4)
apache log4j product:apache/log4j
- Affected>= 2.0-alpha1, < 2.25.4Affected range ends before2.25.4as published by CNA (CVE List)
- Affected>= 3.0.0-alpha1, <= 3.0.0-beta3Last known affected3.0.0-beta3as published by CNA (CVE List)
- Affected>= 2.0, < 2.25.4Affected range ends before2.25.4as published by CPE data (via the NVD API)
- Affected3.0.0-alpha1Fixed innot namedas published by CPE data (via the NVD API)
- Affected3.0.0-alpha1_rc1Fixed innot namedas published by CPE data (via the NVD API)
- Affected3.0.0-alpha1_rc2Fixed innot namedas published by CPE data (via the NVD API)
- Affected3.0.0-beta1Fixed innot namedas published by CPE data (via the NVD API)
- Affected3.0.0-beta2Fixed innot namedas published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 7.5 HIGH (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-116
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- yes
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)Apache Log4j Core's XmlLayout https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout , in versions up to and including 2.25.3, fails to sanitize characters forbidden by the XML 1.0 specification https://www.w3.org/TR/xml/#charsets producing invalid XML output whenever a log message or MDC value contains such characters. The impact depends on the StAX implementation in use: * JRE built-in StAX: Forbidden characters are silently written to the output, producing malformed XML. Conforming parsers must reject such documents with a fatal error, which may cause downstream log-processing systems to drop the affected records. * Alternative StAX implementations (e.g., Woodstox https://github.com/FasterXML/woodstox , a transitive dependency of the Jackson XML Dataformat module): An exception is thrown during the logging call, and the log event is never delivered to its intended appender, only to Log4j's internal status logger. Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue by sanitizing forbidden characters before XML output.
Update history
- 10 Apr 2026Published
References
- patchhttps://github.com/apache/logging-log4j2/pull/4077
- advisoryhttps://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhb
- otherhttps://logging.apache.org/cyclonedx/vdr.xml
- otherhttps://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout
- advisoryhttps://logging.apache.org/security.html#CVE-2026-34480
- advisoryhttp://www.openwall.com/lists/oss-security/2026/04/10/9
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-34480
- otherhttps://github.com/apache/logging-log4j2
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-34480 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-3pxv-7cmr-fjr4 (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 50 min ago · osv 50 min ago · nvd 19 min ago · epss 50 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-3pxv-7cmr-fjr4