CVE-2026-40023 Apache Log4cxx, Apache Log4cxx (Conan), Apache Log4cxx (Brew): Silent log event loss in XMLLayout due to unescaped XML 1.0 forbidden characters
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
10 packages: 3 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/log4cxx(Debian 12) | = 1.0.0-1; = 1.0.0-1+deb12u1; = 1.1.0-1; = 1.1.0-1~exp1 +7 more | No fix listed | No fix yet |
| debian/log4cxx(Debian 13) | = 1.4.0-1; = 1.4.0-1+deb13u1; = 1.4.0-1.1; = 1.5.0-1 +1 more | No fix listed | No fix yet |
| debian/log4cxx(Debian 14) | = 1.4.0-1; = 1.4.0-1.1; = 1.5.0-1; All versions | No fix listed | No fix yet |
| ubuntu/log4cxx(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/log4cxx(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/log4cxx(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/log4cxx(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| apache log4cxx | < 1.7.0 | 1.7.0 | Fixed |
| Apache Log4cxx (Brew) | < 1.7.0 | 1.7.0 | Fixed |
| conan log4cxx | < 1.7.0 | 1.7.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache log4cxx | < 1.7.0 | 1.7.0 |
| conan log4cxx | < 1.7.0 | 1.7.0 |
| Apache Log4cxx (Brew) | < 1.7.0 | 1.7.0 |
| debian/log4cxx(Debian:12) | All versions | No fix listed |
| debian/log4cxx(Debian:12) | = 1.0.0-1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.0.0-1+deb12u1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.1.0-1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.1.0-1~exp1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.2.0-1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.3.0-1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.3.1-1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.4.0-1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.4.0-1.1 | No fix listed |
| debian/log4cxx(Debian:12) | = 1.5.0-1 | No fix listed |
| debian/log4cxx(Debian:13) | All versions | No fix listed |
| debian/log4cxx(Debian:13) | = 1.4.0-1 | No fix listed |
| debian/log4cxx(Debian:13) | = 1.4.0-1+deb13u1 | No fix listed |
| debian/log4cxx(Debian:13) | = 1.4.0-1.1 | No fix listed |
| debian/log4cxx(Debian:13) | = 1.5.0-1 | No fix listed |
| debian/log4cxx(Debian:14) | All versions | No fix listed |
| debian/log4cxx(Debian:14) | = 1.4.0-1 | No fix listed |
| debian/log4cxx(Debian:14) | = 1.4.0-1.1 | No fix listed |
| debian/log4cxx(Debian:14) | = 1.5.0-1 | No fix listed |
| redhat/log4cxx(Red Hat:rhel_els:7) | All versions | No fix listed |
| ubuntu/log4cxx(Ubuntu:22.04) | All versions | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/log4cxx(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/log4cxx(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/log4cxx(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com issue-tracking patch
- logging.apache.org vendor-advisory
- logging.apache.org product vendor-advisory
- logging.apache.org product related
- lists.apache.org mailing-list vendor-advisory
- www.openwall.com mailing-list third-party-advisory
- Debian Security Tracker CVE-2026-40023 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2457317 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking