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

[CVE catalog]

Severity
Medium · CVSS 6.9CVSS: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.

DistributionPackageReleaseVersionStatus
Debianapache-log4j2sid2.26.1-1fixed
Debianapache-log4j2forky2.19.0-2vulnerable
Debianapache-log4j2trixie2.19.0-2vulnerable
Debianapache-log4j2bookworm2.19.0-2vulnerable
Debianapache-log4j1.2sid1.2.17-11vulnerable
Debianapache-log4j1.2forky1.2.17-11vulnerable
Debianapache-log4j1.2trixie1.2.17-11vulnerable
Debianapache-log4j1.2bookworm1.2.17-11vulnerable
Cpeapache-log4j1.2Not reportedNot reportedvulnerable
Cpeapache-log4j2Not reportedNot reportedvulnerable
Cpelog4jNot reported2.25.4fixed
Cpelog4jNot reportedNot reportedunknown
Cpelog4jNot reportedNot reportedunknown

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianapache-log4j2sourcesid2.26.1-1not yet assignedNot reported[1133847]
Debianapache-log4j2sourceforky(unfixed)not yet assignedNot reported[1133847]
Debianapache-log4j2sourcetrixie(unfixed)not yet assignedNot reported[1133847]
Debianapache-log4j2sourcebookworm(unfixed)not yet assignedNot reported[1133847]
Debianapache-log4j1.2sourcesid(unfixed)not yet assignedNot reported[1136032]
Debianapache-log4j1.2sourceforky(unfixed)not yet assignedNot reported[1136032]
Debianapache-log4j1.2sourcetrixie(unfixed)not yet assignedNot reported[1136032]
Debianapache-log4j1.2sourcebookworm(unfixed)not yet assignedNot reported[1136032]
Cpelog4jcpeNot reported2.25.4Not reportedNot reportedNot 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)]

  • Source package: [apache-log4j1.2]

    Details (2)
    • 1.2.17-11 · all · bookworm

      Affected

      nvd · apache-log4j1.2 · debian · bookworm; nvd · apache-log4j1.2 · debian · 12

    • 1.2.17-11 · all · bookworm

      Affected

      nvd · apache-log4j1.2 · debian · bookworm; nvd · apache-log4j1.2 · debian · 12

  • Source package: [apache-log4j1.2]

    Details (2)
    • 1.2.17-11 · all · bookworm

      Affected

      nvd · apache-log4j1.2 · debian · bookworm; nvd · apache-log4j1.2 · debian · 12

    • 1.2.17-11 · all · bookworm

      Affected

      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 · bookworm

      Affected

      nvd · apache-log4j2 · debian · bookworm; nvd · apache-log4j2 · debian · 12

    • 2.19.0-2 · all · bookworm

      Affected

      nvd · apache-log4j2 · debian · bookworm; nvd · apache-log4j2 · debian · 12

[Debian 13 (Trixie)]

  • Source package: [apache-log4j1.2]

    Details (2)
    • 1.2.17-11 · all · trixie

      Affected

      nvd · apache-log4j1.2 · debian · 13

    • 1.2.17-11 · all · trixie

      Affected

      nvd · apache-log4j1.2 · debian · 13

  • Source package: [apache-log4j1.2]

    Details (2)
    • 1.2.17-11 · all · trixie

      Affected

      nvd · apache-log4j1.2 · debian · 13

    • 1.2.17-11 · all · trixie

      Affected

      nvd · apache-log4j1.2 · debian · 13

  • [liblog4j2-java]Affected

    Source package: [apache-log4j2]

    Details (2)
    • 2.19.0-2 · all · trixie

      Affected

      nvd · apache-log4j2 · debian · 13

    • 2.19.0-2 · all · trixie

      Affected

      nvd · apache-log4j2 · debian · 13

Observed:

References