CVE-2026-40021

Apache Log4net's XmlLayout https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list and XmlLayoutSchemaLog4J https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list , in versions before 3.3.0, fail to sanitize characters forbidden by the XML 1.0 specification https://www.w3.org/TR/xml/#charsets in MDC property keys and values, as well as the identity field that may carry attacker-influenced data. This causes an exception during serialization and the silent loss of the affected log event. An attacker who can influence any of these fields can exploit this to suppress individual log records, impairing audit trails and detection of malicious activity. Users are advised to upgrade to Apache Log4net 3.3.0, which fixes this issue.
Configurations

Configuration 1 (hide)

cpe:2.3:a:apache:log4net:*:*:*:*:*:*:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) XmlLayout de Apache Log4net https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list y XmlLayoutSchemaLog4J https://logging.apache.org/log4net/manual/configuration/layouts.html#layout-list , en versiones anteriores a la 3.3.0, no logran sanear caracteres prohibidos por la especificación XML 1.0 https://www.w3.org/TR/xml/#charsets en las claves y valores de las propiedades MDC, así como en el campo de identidad que puede contener datos influenciados por el atacante. Esto provoca una excepción durante la serialización y la pérdida silenciosa del evento de registro afectado. Un atacante que pueda influir en cualquiera de estos campos puede explotar esto para suprimir registros de log individuales, perjudicando las pistas de auditoría y la detección de actividad maliciosa. Se aconseja a los usuarios actualizar a Apache Log4net 3.3.0, que corrige este problema.

Information

Published : 2026-04-10 16:16

Updated : 2026-10-26 21:10


NVD link : CVE-2026-40021

Mitre link : CVE-2026-40021

CVE.ORG link : CVE-2026-40021


JSON object : View

Products Affected

apache

  • log4net
CWE
CWE-116

Improper Encoding or Escaping of Output