{"id":"CVE-2026-34480","aliases":["CVE-2026-34480","GHSA-3pxv-7cmr-fjr4"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters","summary":"Apache Log4j Core's  XmlLayout https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout , in versions up to and including 2.25.3, fails to sanitize characters forbidden by the  XML 1.0 specification https://www.w3.org/TR/xml/#charsets  producing invalid XML output whenever a log message or MDC value contains such characters.\n\nThe impact depends on the StAX implementation in use:\n\n  *  JRE built-in StAX: Forbidden characters are silently written to the output, producing malformed XML. Conforming parsers must reject such documents with a fatal error, which may cause downstream log-processing systems to drop the affected records.\n  *  Alternative StAX implementations (e.g.,  Woodstox https://github.com/FasterXML/woodstox , a transitive dependency of the Jackson XML Dataformat module): An exception is thrown during the logging call, and the log event is never delivered to its intended appender, only to Log4j's internal status logger.\n\n\nUsers are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue by sanitizing forbidden characters before XML output.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Apache Log4j Core's  XmlLayout https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout , in versions up to and including 2.25.3, fails to sanitize characters forbidden by the  XML 1.0 specification https://www.w3.org/TR/xml/#charsets  producing invalid XML output whenever a log message or MDC value contains such characters.\n\nThe impact depends on the StAX implementation in use:\n\n  *  JRE built-in StAX: Forbidden characters are silently written to the output, producing malformed XML. Conforming parsers must reject such documents with a fatal error, which may cause downstream log-processing systems to drop the affected records.\n  *  Alternative StAX implementations (e.g.,  Woodstox https://github.com/FasterXML/woodstox , a transitive dependency of the Jackson XML Dataformat module): An exception is thrown during the logging call, and the log event is never delivered to its intended appender, only to Log4j's internal status logger.\n\n\nUsers are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue by sanitizing forbidden characters before XML output.","source":"cvelist"},{"lang":"en","text":"Apache Log4j Core's [`XmlLayout`](https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout), in versions up to and including 2.25.3, fails to sanitize characters forbidden by the [XML 1.0 specification](https://www.w3.org/TR/xml/#charsets), producing invalid XML output whenever a log message or MDC value contains such characters.\n\nThe impact depends on the StAX implementation in use:\n\n  *  **JRE built-in StAX**: Forbidden characters are silently written to the output, producing malformed XML. Conforming parsers must reject such documents with a fatal error, which may cause downstream log-processing systems to drop the affected records.\n  *  **Alternative StAX implementations** (e.g., [Woodstox](https://github.com/FasterXML/woodstox), a transitive dependency of the Jackson XML Dataformat module): An exception is thrown during the logging call, and the log event is never delivered to its intended appender, only to Log4j's internal status logger.\n\nUsers are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue by sanitizing forbidden characters before XML output.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El XmlLayout de Apache Log4j Core https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout , en versiones hasta la 2.25.3 inclusive, no logra sanear los caracteres prohibidos por la especificación XML 1.0 https://www.w3.org/TR/xml/#charsets produciendo una salida XML no válida cada vez que un mensaje de registro o un valor MDC contiene dichos caracteres.\n\nEl impacto depende de la implementación de StAX en uso:\n\n  *  StAX integrado en JRE: Los caracteres prohibidos se escriben silenciosamente en la salida, produciendo XML malformado. Los analizadores conformes deben rechazar dichos documentos con un error fatal, lo que puede hacer que los sistemas de procesamiento de registros posteriores descarten los registros afectados.\n  *  Implementaciones alternativas de StAX (por ejemplo, Woodstox https://github.com/FasterXML/woodstox , una dependencia transitiva del módulo Jackson XML Dataformat): Se lanza una excepción durante la llamada de registro, y el evento de registro nunca se entrega a su appender previsto, solo al registrador de estado interno de Log4j.\n\nSe recomienda a los usuarios actualizar a Apache Log4j Core 2.25.4, que corrige este problema saneando los caracteres prohibidos antes de la salida XML.","source":"nvd"}],"published":"2026-04-10T15:42:03.843Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"apache","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"apache","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"type":"maven","introduced":"2.0-alpha1","fixed":"2.25.4","status":"affected"},{"type":"maven","introduced":"3.0.0-alpha1","lastAffected":"3.0.0-beta3","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Log4j Core","package":"org.apache.logging.log4j:log4j-core","cpe":"cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0-alpha1","status":"affected","fixed":"2.25.4"}],"ecosystem":"Maven","package":"org.apache.logging.log4j:log4j-core","purl":"pkg:maven/org.apache.logging.log4j/log4j-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0-alpha1","status":"affected","lastAffected":"3.0.0-beta3"}],"ecosystem":"Maven","package":"org.apache.logging.log4j:log4j-core","purl":"pkg:maven/org.apache.logging.log4j/log4j-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0","fixed":"2.25.4"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"}],"vendor":"apache","product":"log4j","cpe":"cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/apache/logging-log4j2/pull/4077","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://logging.apache.org/security.html#CVE-2026-34480","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://logging.apache.org/cyclonedx/vdr.xml","tags":["product","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout","tags":["related","technical-description","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhb","tags":["mailing-list","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/10/9","tags":["mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34480","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/logging-log4j2","tags":["package"],"sources":["ghsa"]}],"credits":["Ap4sh (Samy Medjahed) and Ethicxz (Eliott Laurie) (original reporters)","jabaltarik1 (independently)"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-10T17:43:51.255Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34480","url":"https://www.cve.org/CVERecord?id=CVE-2026-34480","licence":"CVE Terms of Use","modified":"2026-04-10T17:45:07.434Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3pxv-7cmr-fjr4","url":"https://github.com/advisories/GHSA-3pxv-7cmr-fjr4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:42.492Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34480","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34480","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.500Z","epss":{"score":0.01064,"percentile":0.65613,"date":"2026-12-01T12:00:22.000Z"}}