
CVE catalog
CVE-2026-34480
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 speci
- Severity
- Medium · CVSS 6.9
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.05% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | apache-log4j2 | sid | 2.26.1-1 | fixed |
| Debian | apache-log4j2 | forky | 2.19.0-2 | vulnerable |
| Debian | apache-log4j2 | trixie | 2.19.0-2 | vulnerable |
| Debian | apache-log4j2 | bookworm | 2.19.0-2 | vulnerable |
| Debian | apache-log4j1.2 | sid | 1.2.17-11 | vulnerable |
| Debian | apache-log4j1.2 | forky | 1.2.17-11 | vulnerable |
| Debian | apache-log4j1.2 | trixie | 1.2.17-11 | vulnerable |
| Debian | apache-log4j1.2 | bookworm | 1.2.17-11 | vulnerable |
| Cpe | apache-log4j1.2 | Not reported | Not reported | vulnerable |
| Cpe | apache-log4j2 | Not reported | Not reported | vulnerable |
| Cpe | log4j | Not reported | 2.25.4 | fixed |
| Cpe | log4j | Not reported | Not reported | unknown |
| Cpe | log4j | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | apache-log4j2 | source | sid | 2.26.1-1 | not yet assigned | Not reported | [1133847] |
| Debian | apache-log4j2 | source | forky | (unfixed) | not yet assigned | Not reported | [1133847] |
| Debian | apache-log4j2 | source | trixie | (unfixed) | not yet assigned | Not reported | [1133847] |
| Debian | apache-log4j2 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1133847] |
| Debian | apache-log4j1.2 | source | sid | (unfixed) | not yet assigned | Not reported | [1136032] |
| Debian | apache-log4j1.2 | source | forky | (unfixed) | not yet assigned | Not reported | [1136032] |
| Debian | apache-log4j1.2 | source | trixie | (unfixed) | not yet assigned | Not reported | [1136032] |
| Debian | apache-log4j1.2 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1136032] |
| Cpe | log4j | cpe | Not reported | 2.25.4 | Not reported | Not reported | Not reported |
[Debian bug #1133847][Debian bug #1136032]
Notes
[trixie] apache-log4j2: Minor issue [bookworm] apache-log4j2: Minor issue [trixie] apache-log4j1.2: Minor issue [bookworm] apache-log4j1.2: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [liblog4j1.2-java]Affected
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · bookwormAffected
nvd · apache-log4j1.2 · debian · bookworm; nvd · apache-log4j1.2 · debian · 12
1.2.17-11· all · bookwormAffected
nvd · apache-log4j1.2 · debian · bookworm; nvd · apache-log4j1.2 · debian · 12
- [liblog4j1.2-java-doc]Affected
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · bookwormAffected
nvd · apache-log4j1.2 · debian · bookworm; nvd · apache-log4j1.2 · debian · 12
1.2.17-11· all · bookwormAffected
nvd · apache-log4j1.2 · debian · bookworm; nvd · apache-log4j1.2 · debian · 12
- [liblog4j2-java]Affected
Source package: [apache-log4j2]
Details (2)
2.19.0-2· all · bookwormAffected
nvd · apache-log4j2 · debian · bookworm; nvd · apache-log4j2 · debian · 12
2.19.0-2· all · bookwormAffected
nvd · apache-log4j2 · debian · bookworm; nvd · apache-log4j2 · debian · 12
[Debian 13 (Trixie)]
- [liblog4j1.2-java]Affected
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · trixieAffected
nvd · apache-log4j1.2 · debian · 13
1.2.17-11· all · trixieAffected
nvd · apache-log4j1.2 · debian · 13
- [liblog4j1.2-java-doc]Affected
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · trixieAffected
nvd · apache-log4j1.2 · debian · 13
1.2.17-11· all · trixieAffected
nvd · apache-log4j1.2 · debian · 13
- [liblog4j2-java]Affected
Source package: [apache-log4j2]
Details (2)
2.19.0-2· all · trixieAffected
nvd · apache-log4j2 · debian · 13
2.19.0-2· all · trixieAffected
nvd · apache-log4j2 · debian · 13
Observed:
References
- [http://www.openwall.com/lists/oss-security/2026/04/10/9]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10544-1.json]
- [https://github.com/apache/logging-log4j2/pull/4077]
- [https://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhb]
- [https://logging.apache.org/cyclonedx/vdr.xml]
- [https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout]
- [https://logging.apache.org/security.html#CVE-2026-34480]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-34480]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-34480]
- [https://security-tracker.debian.org/tracker/CVE-2026-34480]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34480.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2260.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]