# 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

- Severity: Medium 6.3 (CVSS:4.0, scored by apache) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-04-10T15:45:52.895Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Log4cxx: before 1.7.0
- log4cxx: before 1.7.0
- apache log4cxx: before 1.7.0

## Every score

- apache: CVSS:4.0 6.3 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/apache/logging-log4cxx/pull/609> (issue-tracking, patch)
- <https://logging.apache.org/security.html#CVE-2026-40023> (vendor-advisory)
- <https://logging.apache.org/cyclonedx/vdr.xml> (product, vendor-advisory)
- <https://logging.apache.org/log4cxx/1.7.0/classlog4cxx_1_1xml_1_1XMLLayout.html> (product, related)
- <https://lists.apache.org/thread/y15cv3zblg3dfwr5vy6ddbnl4zyrzr8b> (mailing-list, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/04/10/12> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2026-40023](https://www.cve.org/CVERecord?id=CVE-2026-40023), CVE Terms of Use, modified 2026-04-10
- NVD: [CVE-2026-40023](https://nvd.nist.gov/vuln/detail/CVE-2026-40023), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40023 · Whole record: https://cve.day/CVE-2026-40023.json · Rebuilt by cve.day 2026-11-25T22:59:18.503Z
