Skip to main content

Apache Log4Cxx EUVDEUVD-2026-21490

| CVE-2026-40023 MEDIUM
Improper Encoding or Escaping of Output (CWE-116)
2026-04-10 apache
6.3
CVSS 4.0 · Vendor: apache
View

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

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Apr 10, 2026 - 16:00 CVSS 6.3

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

Apache Log4cxx 0 <1.7.0
Apache Log4cxx (Brew) 0 <1.7.0
Apache Log4cxx (Conan) 0 <1.7.0

Affected Packages

euvd apache_log4cxx fix: 1.7.0
euvd apache_log4cxx_brew fix: 1.7.0
euvd apache_log4cxx_conan fix: 1.7.0

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

Vendor (apache) PRIMARY 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
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 10, 2026 - 16:00 nvd
Patch available
CVE Published
Apr 10, 2026 - 15:45 nvd
MEDIUM 6.3

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

EPSS Score
0.1%
Top 69% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 2

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy