Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40023: CWE-116 Improper Encoding or Escaping of Output in Apache Software Foundation Apache Log4cxx

0
Medium
VulnerabilityCVE-2026-40023cvecve-2026-40023cwe-116
Published: Fri Apr 10 2026 (04/10/2026, 15:45:52 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Log4cxx

Description

Apache Log4cxx versions before 1. 7. 0 have a vulnerability in the XMLLayout component where forbidden XML 1. 0 characters in log messages and related properties are not properly sanitized. This results in invalid XML output that conforming XML parsers reject with fatal errors, potentially causing downstream log processing systems to drop or fail to index affected log records. Attackers who can influence logged data may exploit this to suppress specific log entries, impairing audit trails and detection capabilities. The issue is fixed in Apache Log4cxx version 1. 7. 0.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/10/2026, 16:20:52 UTC

Technical Analysis

Apache Log4cxx prior to version 1.7.0 fails to properly encode or escape characters forbidden by the XML 1.0 specification in its XMLLayout output. This improper encoding leads to invalid XML documents that compliant XML parsers reject, causing downstream log processing systems to potentially drop or fail to index logs containing such characters. An attacker able to control logged content can exploit this to suppress individual log records, thereby impairing audit and detection mechanisms. The vulnerability is identified as CWE-116 (Improper Encoding or Escaping of Output).

Potential Impact

The vulnerability can cause log records containing forbidden XML characters to be rejected by XML parsers, resulting in loss or omission of those logs in downstream processing systems. This can impair audit trails and hinder detection of malicious activity. There is no indication of direct system compromise or code execution. No known exploits in the wild have been reported.

Mitigation Recommendations

Users should upgrade to Apache Log4cxx version 1.7.0, which addresses this issue by properly sanitizing forbidden XML characters in log output. No other official remediation or temporary fixes are documented. Patch status is not explicitly confirmed beyond the recommendation to upgrade; therefore, check the vendor advisory for the latest remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-04-08T10:49:51.858Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69d91fe11cc7ad14dacba377

Added to database: 4/10/2026, 4:05:53 PM

Last enriched: 4/10/2026, 4:20:52 PM

Last updated: 4/10/2026, 5:33:24 PM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses