Improper Encoding or Escaping of Output in Apache log4cxx - CVE-2026-40023
Published: April 28, 2026
Apache log4cxx
Detailed vulnerability description
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.