CVE-2026-34480 — Apache Log4j Core: Silent log event loss in...
Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.23%). Schedule for your next planned update.
Does your project use an affected org.apache.logging.log4j:log4j-core version?
Paste your pom.xml to check it for CVE-2026-34480 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Apache Log4j Core's XmlLayout, in versions up to and including 2.25.3, fails to sanitize characters forbidden by the XML 1.0 specification, 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, 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.
Advisory Timeline
- First published April 10, 2026 (230 days ago).
- Last revised September 10, 2026 — 152 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 2.25.4 for org.apache.logging.log4j:log4j-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.apache.logging.log4j:log4j-core Maven · Affected: 3.0.0-alpha1, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3 | Range-based data available |
| org.apache.logging.log4j:log4j-core Maven · Affected: 2.0, 2.0-alpha1, 2.0-alpha2, 2.0-beta1 (+66 more) | 2.25.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-116Improper Encoding or EscapingMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.8 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-34480ADVISORY
- https://github.com/apache/logging-log4j2/pull/4077WEB
- https://github.com/apache/logging-log4j2PACKAGE
- https://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhbWEB
- https://logging.apache.org/cyclonedx/vdr.xmlWEB
- https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayoutWEB
- https://logging.apache.org/security.html#CVE-2026-34480WEB
- https://www.openwall.com/lists/oss-security/2026/04/10/9WEB
Frequently Asked Questions
- What is CVE-2026-34480?
- Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.8/10).
- How do I check if my project is affected by CVE-2026-34480?
- CVE-2026-34480 affects org.apache.logging.log4j:log4j-core. It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-34480 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 68.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2021-45046CRITICAL
Incomplete fix for Apache Log4j vulnerability
- CVE-2021-44228CRITICAL
Remote code injection in Log4j
- CVE-2021-45105HIGH
Apache Log4j2 vulnerable to Improper Input Validation and Uncontrolled Recursion
- CVE-2026-34477MEDIUM
Apache Log4j Core: `verifyHostName` attribute silently ignored in TLS configuration
- CVE-2021-44832MEDIUM
Improper Input Validation and Injection in Apache Log4j2
- CVE-2026-34479MEDIUM
Apache Log4j 1 to Log4j 2 bridge: silent log event loss in Log4j1XmlLayout due to unescaped XML 1.0 forbidden characters
- CVE-2025-68161MEDIUM
Apache Log4j does not verify the TLS hostname in its Socket Appender
- CVE-2026-19032MEDIUM
jackson-databind: Path Deserialization Missing Scheme Allowlist for FileSystemProvider Resolution