CVE-2026-40023 json
Apache Log4cxx, Apache Log4cxx (Conan), Apache Log4cxx (Brew): Silent log event loss in XMLLayout due to unescaped XML 1.0 forbidden characters
published 2026-04-10 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-21490
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Apache Software Foundation Apache Log4cxx 1.7.0
- Apache Software Foundation Apache Log4cxx (Conan) 1.7.0
- Apache Software Foundation Apache Log4cxx (Brew) 1.7.0
- log4cxx openSUSE Tumbleweed 1.7.0-2.1
opensuse advisories openSUSE-SU-2026:10566-1
- github.com/apache/logging-log4cxx#609 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-40023 updated cvss 5.3
Apache Log4cxx: Apache Log4cxx: Log processing impairment due to unsanitized XML characters
-
Red Hat Enterprise Linux 7 log4cxxaffected: workaround, no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.3 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N |
| CNA | 4.0 | 6.3 | CVSS: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 |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected products
- Apache Software Foundation Apache Log4cxx
- Apache Software Foundation Apache Log4cxx (Conan)
- Apache Software Foundation Apache Log4cxx (Brew)
Classification
- Weakness
-
- CWE-116 Improper Encoding or Escaping of Output
References
-
github.com
/apache/logging-log4cxx/pull/609
patch, issue-tracking
-
logging.apache.org
/security.html#CVE-2026-40023
vendor-advisory
-
logging.apache.org
/cyclonedx/vdr.xml
vendor-advisory, product
-
lists.apache.org
/thread/y15cv3zblg3dfwr5vy6ddbnl4zyrzr8b
vendor-advisory, mailing-list
-
logging.apache.org
/log4cxx/1.7.0/classlog4cxx_1_1xml_1_1XMLLayout.html
related, product
-
openwall.com
/lists/oss-security/2026/04/10/12
mailing-list, third-party-advisory
Sources
- CVE List CVE-2026-40023
- NVD CVE-2026-40023
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.