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 package | Versions | Reported by |
|---|---|---|
| org.apache.logging.log4j:log4j-1.2-api | from 2.7 before 2.25.4, from 3.0.0-alpha1 up to 3.0.0-beta2 | CVE 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-beta2 | GitHub Advisory Database |
| apache log4j | from 2.7 before 2.25.4, 3.0.0 | NVD |
All scores
| apache | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
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
Log4j1XmlLayoutdirectly in a Log4j Core 2 configuration file. - Those using the Log4j 1 configuration compatibility layer with
org.apache.log4j.xml.XMLLayoutspecified 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
| https://github.com/apache/logging-log4j2/pull/4078 | exploit, issue-tracking, patch, web | |
| https://logging.apache.org/security.html#CVE-2026-34479 | vendor-advisory, web | |
| https://logging.apache.org/cyclonedx/vdr.xml | vendor-advisory, web | |
| https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html | mitigation, related, web | |
| https://lists.apache.org/thread/gd0hp6mj17rn3kj279vgy4p7kd4zz5on | mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2026/04/10/8 | mailing-list, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-34479 | advisory | |
| https://github.com/apache/logging-log4j2 | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34479 changed 2026-04-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h383-gmxw-35v2 changed 2026-10-26 | CC-BY-4.0 |
| NVD | CVE-2026-34479 changed 2026-10-26 | Public domain |