{"id":"UBUNTU-CVE-2026-40023","details":"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.","modified":"2026-10-17T12:58:13.880353188Z","published":"2026-04-10T16:16:00Z","upstream":["CVE-2026-40023"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-40023"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-40023"},{"type":"REPORT","url":"https://github.com/apache/logging-log4cxx/pull/609"},{"type":"REPORT","url":"https://logging.apache.org/security.html#CVE-2026-40023"},{"type":"REPORT","url":"https://lists.apache.org/thread/y15cv3zblg3dfwr5vy6ddbnl4zyrzr8b"},{"type":"REPORT","url":"https://logging.apache.org/cyclonedx/vdr.xml"},{"type":"REPORT","url":"https://logging.apache.org/log4cxx/1.7.0/classlog4cxx_1_1xml_1_1XMLLayout.html"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2026/04/10/12"}],"affected":[{"package":{"name":"log4cxx","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0-1.2ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.0-1.2ubuntu3","binary_name":"liblog4cxx10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0-9ubuntu1","0.10.0-9ubuntu2","0.10.0-10ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"liblog4cxx10v5","binary_version":"0.10.0-10ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0-12ubuntu1","0.10.0-13ubuntu1","0.10.0-13ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.0-13ubuntu2","binary_name":"liblog4cxx10v5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0-15ubuntu1","0.10.0-15ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"liblog4cxx10v5","binary_version":"0.10.0-15ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.0-2ubuntu1","0.11.0-3ubuntu2","0.12.1-4"],"ecosystem_specific":{"binaries":[{"binary_name":"liblog4cxx12","binary_version":"0.12.1-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0-1","1.1.0-1build1","1.1.0-1build2","1.1.0-1build3"],"ecosystem_specific":{"binaries":[{"binary_name":"liblog4cxx15","binary_version":"1.1.0-1build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.1-1","1.4.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"liblog4cxx15","binary_version":"1.4.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"liblog4cxx15","binary_version":"1.5.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}},{"package":{"name":"log4cxx","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/log4cxx?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.0-1","1.5.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"liblog4cxx15","binary_version":"1.5.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40023.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}