CVE catalog

CVE-2026-40023

Apache Log4cxx's XMLLayout https://logging.apache.org/log4cxx/1.7.0/classlog4cxx_1_1xml_1_1XMLLayout.html , in versions before 1.7.0, fails to sanitize characters forbidden by the XML 1.0 specificat

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS:4.0/AV:N/AC:H/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
0.50% · Oct 25, 2026

Apache Log4cxx's XMLLayout https://logging.apache.org/log4cxx/1.7.0/classlog4cxx_1_1xml_1_1XMLLayout.html , in versions before 1.7.0, fails to sanitize characters forbidden by the XML 1.0 specification https://www.w3.org/TR/xml/#charsets in log messages, NDC, and MDC property keys and values, producing invalid XML output. Conforming XML parsers must reject such documents with a fatal error, which may cause downstream log processing systems to drop or fail to index affected records. An attacker who can influence logged data can exploit this to suppress individual log records, impairing audit trails and detection of malicious activity. Users are advised to upgrade to Apache Log4cxx 1.7.0, which fixes this issue.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlog4cxxsid1.5.0-1vulnerable
Debianlog4cxxforky1.5.0-1vulnerable
Debianlog4cxxtrixie1.4.0-1+deb13u1vulnerable
Debianlog4cxxbookworm1.0.0-1+deb12u1vulnerable
Cpelog4cxxNot reportedNot reportedvulnerable
Cpelog4cxxNot reported1.7.0fixed
Opensuselog4cxxtumbleweed1.7.0-2.1fixed
Cpelog4cxxNot reported1.7.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlog4cxxsourcesid(unfixed)not yet assignedNot reported[1133368]
Debianlog4cxxsourceforky(unfixed)not yet assignedNot reported[1133368]
Debianlog4cxxsourcetrixie(unfixed)not yet assignedNot reported[1133368]
Debianlog4cxxsourcebookworm(unfixed)not yet assignedNot reported[1133368]
Cpelog4cxxcpeNot reported1.7.0Not reportedNot reportedNot reported
Opensuselog4cxxrpmtumbleweed1.7.0-2.1Not reportedOPENSUSE-SU-2026:10566-1Not reported
Cpelog4cxxcpeNot reported1.7.0Not reportedNVD-CVE-2026-40023Not reported

[Debian bug #1133368]

Notes

[trixie] log4cxx: Minor issue [bookworm] log4cxx: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [liblog4cxx15]Affected

    Source package: [log4cxx]

    Details (2)
    • 1.0.0-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · log4cxx · debian · bookworm; nvd · log4cxx · debian · 12

    • 1.0.0-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · log4cxx · debian · bookworm; nvd · log4cxx · debian · 12

  • [liblog4cxx-dev]Affected

    Source package: [log4cxx]

    Details (2)
    • 1.0.0-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · log4cxx · debian · bookworm; nvd · log4cxx · debian · 12

    • 1.0.0-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · log4cxx · debian · bookworm; nvd · log4cxx · debian · 12

  • [liblog4cxx-doc]Affected

    Source package: [log4cxx]

    Details (2)
    • 1.0.0-1+deb12u1 · all · bookworm

      Affected

      nvd · log4cxx · debian · bookworm; nvd · log4cxx · debian · 12

    • 1.0.0-1+deb12u1 · all · bookworm

      Affected

      nvd · log4cxx · debian · bookworm; nvd · log4cxx · debian · 12

[Debian 13 (Trixie)]

  • [liblog4cxx15]Affected

    Source package: [log4cxx]

    Details (2)
    • 1.4.0-1+deb13u1 · amd64 · trixie

      Affected

      nvd · log4cxx · debian · 13

    • 1.4.0-1+deb13u1 · arm64 · trixie

      Affected

      nvd · log4cxx · debian · 13

  • [liblog4cxx-dev]Affected

    Source package: [log4cxx]

    Details (2)
    • 1.4.0-1+deb13u1 · amd64 · trixie

      Affected

      nvd · log4cxx · debian · 13

    • 1.4.0-1+deb13u1 · arm64 · trixie

      Affected

      nvd · log4cxx · debian · 13

  • [liblog4cxx-doc]Affected

    Source package: [log4cxx]

    Details (2)
    • 1.4.0-1+deb13u1 · all · trixie

      Affected

      nvd · log4cxx · debian · 13

    • 1.4.0-1+deb13u1 · all · trixie

      Affected

      nvd · log4cxx · debian · 13

[openSUSE Tumbleweed]

  • [liblog4cxx15]Unknown

    Source package: [log4cxx]

    Details (1)
    • 1.8.0-1.1 · x86_64 · tumbleweed

      Unknown · Fixed: 1.7.0-2.1

      Version impact unknown

      nvd · log4cxx · opensuse · tumbleweed

  • Source package: [log4cxx]

    Details (1)
    • 1.8.0-1.1 · x86_64 · tumbleweed

      Unknown · Fixed: 1.7.0-2.1

      Version impact unknown

      nvd · log4cxx · opensuse · tumbleweed

Observed:

References