CVE-2026-34480
published medium CVSS 4.0 · 6.9Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | org.apache.logging.log4j:log4j-coreApache Log4j Core · 2.0-alpha1 to < 2.25.4 · 3.0.0-alpha1 through 3.0.0-beta3 · Other versions: unaffected | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP7 | log4jnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | SLE-15-SP7 | log4j-javadocnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | SLE-15-SP7 | log4j-jclnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | SLE-15-SP7 | log4j-slf4jnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
Show 35 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4js390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-bomaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-bomppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-boms390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-bomx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocs390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jcls390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guiaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guippc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guis390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guix86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqlaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqlppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqls390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqlx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4js390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibs390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webs390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- apache · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j Core | 2.0-alpha1 to < 2.25.4 (affected · maven)3.0.0-alpha1 through 3.0.0-beta3 (affected · maven)Default: unaffected | apache · cna |
Weaknesses
1- CWE-116 CWE-116 Improper Encoding or Escaping of Output
References
6- http://www.openwall.com/lists/oss-security/2026/04/10/9
- 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
Provider assertions
3apache · cna
Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b156b075614881c7bf92c98c0b1589790507a1787a5e830bd21ab91841e13fe8
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record