CVE-2026-34479
JSON

6.9medium

Apache Log4j 1 to Log4j 2 bridge: Silent log event loss in Log4j1XmlLayout due to unescaped XML 1.0 forbidden characters

Severity
6.9medium CVSS:4.0 by apache
Exploit likelihood
0.52% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-h383-gmxw-35v2

Description

The Log4j1XmlLayout from the Apache Log4j 1-to-Log4j 2 bridge fails to escape characters forbidden by the XML 1.0 standard, producing malformed XML output. Conforming XML parsers are required to reject documents containing such characters with a fatal error, which may cause downstream log processing systems to drop or fail to index affected records. Two groups of users are affected: * Those using Log4j1XmlLayout directly in a Log4j Core 2 configuration file. * Those using the Log4j 1 configuration compatibility layer with org.apache.log4j.xml.XMLLayout specified as the layout class. Users are advised to upgrade to Apache Log4j 1-to-Log4j 2 bridge version 2.25.4, which corrects this issue. Note: The Apache Log4j 1-to-Log4j 2 bridge is deprecated and will not be present in Log4j 3. Users are encouraged to consult the Log4j 1 to Log4j 2 migration guide https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html , and specifically the section on eliminating reliance on the bridge.

Affected

Product or packageVersionsReported by
org.apache.logging.log4j:log4j-1.2-apifrom 2.7 before 2.25.4, from 3.0.0-alpha1 up to 3.0.0-beta2CVE List
org.apache.logging.log4j:log4j-core (Maven)from 2.7 before 2.25.4, from 3.0.0-beta1 up to 3.0.0-beta2GitHub Advisory Database
apache log4jfrom 2.7 before 2.25.4, 3.0.0NVD

All scores

apache6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-116

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

The Log4j1XmlLayout from the Apache Log4j 1-to-Log4j 2 bridge fails to escape characters forbidden by the XML 1.0 standard, producing malformed XML output. Conforming XML parsers are required to reject documents containing such characters with a fatal error, which may cause downstream log processing systems to drop or fail to index affected records. Two groups of users are affected: * Those using Log4j1XmlLayout directly in a Log4j Core 2 configuration file. * Those using the Log4j 1 configuration compatibility layer with org.apache.log4j.xml.XMLLayout specified as the layout class. Users are advised to upgrade to Apache Log4j 1-to-Log4j 2 bridge version 2.25.4, which corrects this issue. Note: The Apache Log4j 1-to-Log4j 2 bridge is deprecated and will not be present in Log4j 3. Users are encouraged to consult the Log4j 1 to Log4j 2 migration guide https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html , and specifically the section on eliminating reliance on the bridge.

GitHub Advisory Database

The Log4j1XmlLayout from the Apache Log4j 1-to-Log4j 2 bridge fails to escape characters forbidden by the XML 1.0 standard, producing malformed XML output. Conforming XML parsers are required to reject documents containing such characters with a fatal error, which may cause downstream log processing systems to drop or fail to index affected records.

Two groups of users are affected:

  • Those using Log4j1XmlLayout directly in a Log4j Core 2 configuration file.
  • Those using the Log4j 1 configuration compatibility layer with org.apache.log4j.xml.XMLLayout specified as the layout class.

Users are advised to upgrade to Apache Log4j 1-to-Log4j 2 bridge version 2.25.4, which corrects this issue.

[!NOTE] The Apache Log4j 1-to-Log4j 2 bridge is deprecated and will not be present in Log4j 3. Users are encouraged to consult the Log4j 1 to Log4j 2 migration guide, and specifically the section on eliminating reliance on the bridge.

NVD (es)

El Log4j1XmlLayout del puente Apache Log4j 1-a-Log4j 2 no logra escapar caracteres prohibidos por el estándar XML 1.0, produciendo una salida XML mal formada. Los analizadores XML conformes deben rechazar documentos que contengan dichos caracteres con un error fatal, lo que puede causar que los sistemas de procesamiento de registros posteriores descarten o no logren indexar los registros afectados. Dos grupos de usuarios se ven afectados: * Aquellos que utilizan Log4j1XmlLayout directamente en un archivo de configuración de Log4j Core 2. * Aquellos que utilizan la capa de compatibilidad de configuración de Log4j 1 con org.apache.log4j.xml.XMLLayout especificado como la clase de diseño. Se aconseja a los usuarios actualizar al puente Apache Log4j 1-a-Log4j 2 versión 2.25.4, que corrige este problema. Nota: El puente Apache Log4j 1-a-Log4j 2 está obsoleto y no estará presente en Log4j 3. Se anima a los usuarios a consultar la guía de migración de Log4j 1 a Log4j 2 https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html, y específicamente la sección sobre la eliminación de la dependencia del puente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34479 changed 2026-04-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-h383-gmxw-35v2 changed 2026-10-26CC-BY-4.0
NVDCVE-2026-34479 changed 2026-10-26Public domain