Vulnerability GHSA-3pxv-7cmr-fjr4
Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
5 months ago
April 10, 2026 at 06:31 PM UTC
Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 3.0.0
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 3.0.0
Summary
Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
Details
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.
Related Vulnerabilities
Other vulnerabilities affecting the same packages
Medium Risk
5 months ago
Apache Log4j Core: log injection in `Rfc5424Layout` due to silent configuration incompatibility
2.21.0 - 3.0.0 GHSA-445c-vh5m-36rj
2.21.0 - 3.0.0 GHSA-445c-vh5m-36rj
Medium Risk
5 months ago
Apache Log4j Core: `verifyHostName` attribute silently ignored in TLS configuration
2.14.0 - 2.16.0 and 2.18.0 - 3.0.0 GHSA-6hg6-v5c8-fphq
2.14.0 - 2.16.0 and 2.18.0 - 3.0.0 GHSA-6hg6-v5c8-fphq
Medium Risk
9 months ago
Apache Log4j does not verify the TLS hostname in its Socket Appender
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 2.23.1 GHSA-vc5p-v9hr-52mj
2.1.0 - 2.2.0 and 2.4.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.16.0 and 2.18.0 - 2.23.1 GHSA-vc5p-v9hr-52mj
High Risk
3 years ago
Apache Log4j 1.x (EOL) allows Denial of Service (DoS)
==2.0-alpha1, ==2.0-alpha2, ==2.0-beta1, ==2.0-beta2, ==2.0-beta3, ==2.0-beta4, ==2.0-beta5, ==2.0-beta6, ==2.0-beta7, ==2.0-beta8, ==2.0-beta9, ==2.0-rc1, ==2.0-rc2 GHSA-vp98-w2p3-mv35
==2.0-alpha1, ==2.0-alpha2, ==2.0-beta1, ==2.0-beta2, ==2.0-beta3, ==2.0-beta4, ==2.0-beta5, ==2.0-beta6, ==2.0-beta7, ==2.0-beta8, ==2.0-beta9, ==2.0-rc1, ==2.0-rc2 GHSA-vp98-w2p3-mv35
Medium Risk
4 years ago
Improper Input Validation and Injection in Apache Log4j2
2.1.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.17.0 GHSA-8489-44mv-ggj8
2.1.0 - 2.5.0 and 2.7.0 and 2.9.0 - 2.10.0 and 2.14.0 - 2.17.0 GHSA-8489-44mv-ggj8
Impacted packages
Timeline
Published
5 months ago
April 10, 2026 at 06:31 PM UTC
Fixed (2.25.4)
Unknown
Unknown
Last Modified
22 days ago
September 10, 2026 at 03:50 AM UTC