{"id":"CVE-2026-34480","published":"2026-04-10T15:42:03Z","modified":"2026-04-10T17:45:07Z","title":"Apache Log4j Core: Silent log event loss in XmlLayout due to unescaped XML 1.0 forbidden characters","vendor":"Apache","product":"Apache Log4j Core","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01233,"percentile":0.68916,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/apache/logging-log4j2/pull/4077","tags":["patch"]},{"url":"https://logging.apache.org/security.html#CVE-2026-34480","tags":["vendor-advisory"]},{"url":"https://logging.apache.org/cyclonedx/vdr.xml","tags":["vendor-advisory"]},{"url":"https://logging.apache.org/log4j/2.x/manual/layouts.html#XmlLayout","tags":["related"]},{"url":"https://lists.apache.org/thread/5x0hcnng0chhghp6jgjdp3qmbbhfjzhb","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/10/9","tags":[]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":13.78},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Log4j Core","versions":[">= 2.0-alpha1, < 2.25.4",">= 3.0.0-alpha1, <= 3.0.0-beta3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-10T17:43:51.255638Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.logging.log4j:log4j-core","vulnerableRanges":[">=2.0-alpha1, <2.25.4",">=3.0.0-alpha1, <=3.0.0-beta3"],"patched":["2.25.4"],"from":["GHSA-3pxv-7cmr-fjr4"],"provenance":"source"}],"summary":{"text":"Apache Log4j Core's XmlLayout, in versions up to and including 2.25.3, fails to escape characters forbidden by the XML 1.0 specification in log messages and MDC values, producing invalid XML output. An attacker who can get such characters into logged data can cause affected log events to be lost: with the JRE built-in StAX they produce malformed XML that downstream processors may drop, and with alternative StAX implementations such as Woodstox the logging call throws and the event never reaches its intended appender.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:27Z"},"euvd":{"id":"EUVD-2026-21410","exploited":false,"provenance":"source"}}