Improper Encoding or Escaping of Output in Apache log4cxx - CVE-2026-40023
Published: April 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to suppress individual log records.
The vulnerability exists due to improper output neutralization in XMLLayout when processing logged data containing XML 1.0 forbidden characters. A remote attacker can inject crafted characters into log messages, NDC, or MDC property keys and values to suppress individual log records.
This can cause downstream log processing systems to reject invalid XML documents and fail to index affected records.
Affected software
Fedora
log4cxx
How to mitigate CVE-2026-40023
log4cxx - addressed in versions 1.7.0-2.fc43, 1.7.0-2.fc44, 1.7.0-3.el9, 1.7.0-3.el10_3