All vulnerabilities

Servers and applications

CVE-2026-34480

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. The impact depends on the StAX implementation in use: * JRE…

Severity
Medium 6.9
Published
10 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.25.4
Exploit chance
1.1% in the next 30 daysHigher than 65% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper output encoding (CWE-116)
Attack
Over the network · No login needed · No user action needed
CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Sources
NVD

Description

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.

The impact depends on the StAX implementation in use:

  • 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.
  • 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.
From NVD. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Apache Log4jServers and applications · cpe:a:apache:log4j
  • Version 3.0.0-beta3
  • Version 3.0.0-beta2
  • Version 3.0.0-beta1
  • Version 3.0.0-alpha1_rc2
All 7 release lines
  • From 2.0 before 2.25.4
  • Version 3.0.0-alpha1
  • Version 3.0.0-alpha1_rc1
  • Version 3.0.0-alpha1_rc2
  • Version 3.0.0-beta1
  • Version 3.0.0-beta2
  • Version 3.0.0-beta3

About Apache Log4j

Java library for logging

From Wikidata, CC0 1.0.
GitHub stars
3,645GitHub, 15 Nov 2026
Forks
1,761GitHub, 15 Nov 2026
Latest release
rel/2.26.1GitHub, 15 Nov 2026
Released
2 Jul 2026GitHub
Developer
Apache Software FoundationWikidata
License
Apache Software License 2.0Wikidata
Written in
JavaWikidata
First published on GitHub
12 Jun 2013GitHub

Release lines

ReleaseLatestSecurity fixes
22.26.1Yes
2.122.12.4Ended 14 Dec 2021
2.32.3.2Ended 20 Sept 2015
11.2.17Ended 15 Oct 2015

From endoflife.date.

Vulnerabilities in Apache Log4j

In our list
20
Published in the last 12 months
7
Critical, last 12 months
0
High, last 12 months
0
Known exploited
2
Search the list for Apache Log4j

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-34480
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-34480