CVE-2026-34480Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden…
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 26.10 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 26.04 | apache-log4j1.2 | Under investigation | UBUNTU-CVE-2026-34480 | |
| Ubuntu 26.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 25.10 | apache-log4j1.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-34480 | |
| Ubuntu 25.10 | apache-log4j2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-34480 | |
| Ubuntu 24.04 | apache-log4j1.2 | Under investigation | UBUNTU-CVE-2026-34480 | |
| Ubuntu 24.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 22.04 | apache-log4j1.2 | Under investigation | UBUNTU-CVE-2026-34480 | |
| Ubuntu 22.04 | apache-log4j2 | Under investigation | UBUNTU-CVE-2026-34480 | |
| Ubuntu 20.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 20.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 18.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 18.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 16.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 16.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Ubuntu 14.04 | apache-log4j1.2 | Fix pending | UBUNTU-CVE-2026-34480 | |
| Debian 14 | apache-log4j1.2 | Fix pending | DEBIAN-CVE-2026-34480 | |
| Debian 14 | apache-log4j2 | Fix pending | DEBIAN-CVE-2026-34480 | |
| Debian 13 | apache-log4j1.2 | Fix pending | DEBIAN-CVE-2026-34480 | |
| Debian 13 | apache-log4j2 | Fix pending | DEBIAN-CVE-2026-34480 | |
| Debian 12 | apache-log4j1.2 | Fix pending | DEBIAN-CVE-2026-34480 | |
| Debian 12 | apache-log4j2 | Fix pending | DEBIAN-CVE-2026-34480 | |
| Red Hat Enterprise Linux 9 | log4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-jcl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-slf4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-client | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-core | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-jackson2-provider | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-servlet-initializer | Not affected | ||
| Red Hat Enterprise Linux 9 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-jcl | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-slf4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-web | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Not affected | ||
| Maven library | org.apache.logging.log4j:log4j-core | Fixed | 2.25.4 | GHSA-3pxv-7cmr-fjr4 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Log4j Core: affected: 2.0-alpha1 to before 2.25.4, 3.0.0-alpha1 to 3.0.0-beta3; fixed in
2.25.4
Vendor advisories:
- https://github.com/apache/logging-log4j2/pull/4077 (patch)
- https://logging.apache.org/security.html#CVE-2026-34480 (vendor-advisory)
- https://logging.apache.org/cyclonedx/vdr.xml (vendor-advisory)
- https://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhb (vendor-advisory)
References
- https://github.com/apache/logging-log4j2/pull/4077
- https://logging.apache.org/security.html#CVE-2026-34480
- https://logging.apache.org/cyclonedx/vdr.xml
- https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout
- https://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhb
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.