Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
|
| Impact | The CVSS 4.0 vector (AV:N/AC:H/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N) indicates network-accessible attack vector, high attack complexity, no authentication required, and low integrity impact to the system. The 6.3 base score reflects the integrity degradation of log records themselves rather than system compromise. However, real-world risk hinges on the attack scenario: an attacker must (1) have network-accessible input paths to the logger (high AC reflects this realistic constraint) and (2) be capable of injecting raw bytes or control characters into logged data. The vulnerability is fundamentally about data integrity and auditability rather than confidentiality or availability of the target system. For environments where log4cxx XMLLayout feeds critical SIEM or compliance systems, suppression of audit records represents a material risk to detection capabilities and regulatory compliance (SOX, PCI-DSS). However, organizations using alternative layouts (PatternLayout, JSONLayout) or non-XML output are unaffected. The vulnerability is not remotely exploitable in the sense of achieving RCE or system compromise; exploitation requires influence over logged content, typically through application-layer input (HTTP requests, syslog entries, or API payloads that an app logs). No public exploit proof-of-concept or active exploitation (KEV) has been reported, but the attack is trivially constructible by anyone familiar with XML and control characters. AC:H correctly reflects that reliably injecting forbidden characters often requires understanding of the application's input handling and log capture points. |
| Exploit ScenarioDerived | An application uses Apache Log4cxx with XMLLayout to output audit logs consumed by a SIEM system. An attacker crafts a malicious HTTP request or API payload containing embedded control characters (e.g., 0x08 or 0x1A) that are logged verbatim by the application. Log4cxx's XMLLayout includes these forbidden characters in the generated XML without escaping, producing a non-well-formed document. The SIEM's XML parser rejects the entire log record as fatal-error-invalid, dropping it from the index and audit trail. The attacker's malicious action-for example, SQL injection or privilege escalation-goes undetected because the log record documenting it was suppressed. Attack complexity is |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 10, 2026
Apache Log4cxx XMLLayout before version 1.7.0 fails to sanitize XML-forbidden characters in log messages, NDC (Nested Diagnostic Context), and MDC (Mapped Diagnostic Context) properties, producing malformed XML that conforming parsers reject with fatal errors. Attackers who can influence logged data can exploit this to suppress individual log records, degrading audit trails and impairing detection of malicious activity. The vulnerability affects all versions prior to 1.7.0 across multiple distri
Earlier versions of this analysis (1)
Apache Log4cxx XMLLayout before version 1.7.0 fails to sanitize XML-forbidden characters in log messages, NDC (Nested Diagnostic Context), and MDC (Mapped Diagnostic Context) properties, producing malformed XML that conforming parsers reject with fatal errors. Attackers who can influence logged data can exploit this to suppress individual log records, degrading audit trails and impairing detection of malicious activity. The vulnerability affects all versions prior to 1.7.0 across multiple distribution channels (native, Conan, Homebrew), with vendor-released patch version 1.7.0 now available.
RemediationAI
Vendor-released patch: Apache Log4cxx 1.7.0. Upgrade all installations of log4cxx to version 1.7.0 or later immediately if using XMLLayout. Users can verify the installed version via the library's version header or package manager metadata (rpm -q log4cxx, dpkg -l | grep log4cxx, brew list --versions log4cxx, or conan search log4cxx). Until patching is possible, audit the use of XMLLayout in the codebase; if alternative layouts (PatternLayout, JSONLayout, or other non-XML formats) are acceptable for your logging pipeline, switching away from XMLLayout eliminates the vulnerability entirely. If XMLLayout is mandatory, implement application-level input sanitization upstream of the logger to strip or escape control characters from user-influenced input before logging, though this is a workaround and not a substitute for patching. Refer to the upstream PR https://github.com/apache/logging-log4cxx/pull/609 and the full advisory at https://lists.apache.org/thread/y15cv3zblg3dfwr5vy6ddbnl4zyrzr8b for technical details and deployment guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Log4cxx is a C++ logging library implementing XML-based log output through its XMLLayout component. The XML 1.0 specification (W3C TR-xml) defines a restricted character set; specifically, characters in the range 0x00-0x08, 0x0B-0x0C, 0x0E-0x1F, and unpaired surrogates are forbidden in XML documents. XMLLayout formats log records as XML elements but did not validate or escape these forbidden characters when rendering message content, NDC stacks, or MDC property key-value pairs. When a log entry contains such characters, the generated XML becomes non-well-formed. Any XML 1.0 compliant parser (DOM, SAX, or streaming) must reject the document with a fatal parse error per XML specification section 4.2 (Well-Formedness Constraints). This causes downstream log processing pipelines-SIEM systems, log aggregators (ELK, Splunk, etc.), or indexing services-to silently drop or fail-parse affected records. The root cause is improper input validation and encoding (CWE-116: Improper Encoding or Escaping of Output). This is distinct from XML injection (CWE-91) because it does not exploit parser state machines but rather violates the character set specification itself.
Know when Apache Log4Cxx gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Apache Log4net and Log4cxx XML Layout Injection
View all 2Same weakness CWE-116 – Improper Encoding or Escaping of Output
View allSame technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-21490
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB