CVE-2026-40023
published medium CVSS 4.0 · 6.3Apache Log4cxx, Apache Log4cxx (Conan), Apache Log4cxx (Brew): Silent log event loss in XMLLayout due to unescaped XML 1.0 forbidden characters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Log4cxx0 to < 1.7.0 · Other versions: unaffected | Affected | Not stated | apache |
| Apache Software Foundation | — | log4cxxApache Log4cxx (Conan) · 0 to < 1.7.0 · Other versions: unaffected | Affected | Not stated | apache |
| Apache Software Foundation | — | log4cxxApache Log4cxx (Brew) · 0 to < 1.7.0 · Other versions: unaffected | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx-develaarch64 | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx-develppc64le | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx-devels390x | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx-develx86_64 | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx15aarch64 | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx15ppc64le | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx15s390x | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | liblog4cxx15x86_64 | Advisory build | 1.7.0-bp160.1.1 | OPENSUSE-SU-2026:20705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx-develaarch64 | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx-develppc64le | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx-devels390x | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx-develx86_64 | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx15aarch64 | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx15ppc64le | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx15s390x | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | liblog4cxx15x86_64 | Advisory build | 1.7.0-2.1 | OPENSUSE-SU-2026:10566-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- apache · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Log4cxx | 0 to < 1.7.0 (affected · semver)Default: unaffected | apache · cna |
| Apache Software Foundation | Apache Log4cxx (Conan) | 0 to < 1.7.0 (affected · semver)Default: unaffected | apache · cna |
| Apache Software Foundation | Apache Log4cxx (Brew) | 0 to < 1.7.0 (affected · semver)Default: unaffected | apache · cna |
Weaknesses
1- CWE-116 CWE-116 Improper Encoding or Escaping of Output
References
6- http://www.openwall.com/lists/oss-security/2026/04/10/12
- https://github.com/apache/logging-log4cxx/pull/609
- https://lists.apache.org/thread/y15cv3zblg3dfwr5vy6ddbnl4zyrzr8b
- https://logging.apache.org/cyclonedx/vdr.xml
- https://logging.apache.org/log4cxx/1.7.0/classlog4cxx_1_1xml_1_1XMLLayout.html
- https://logging.apache.org/security.html#CVE-2026-40023
Provider assertions
3apache · cna
Apache Log4cxx, Apache Log4cxx (Conan), Apache Log4cxx (Brew): Silent log event loss in XMLLayout due to unescaped XML 1.0 forbidden characters
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 98f611c80711ad4069bc4a6d4d776719c0bc8791654464075bcfa36f4c0ea142
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record