All vulnerabilities

Servers and applications

CVE-2026-34481

Apache Log4j's JsonTemplateLayout https://logging.apache.org/log4j/2.x/manual/json-template-layout.html , in versions up to and including 2.25.3, produces invalid JSON output when log events contain non-finite floating-point values (NaN, Infinity, or -Infinity), which are prohibited by RFC 8259. This may cause downstream log processing systems to reject or fail to index affected records. An…

Severity
Medium 6.3
Published
10 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.25.4
Exploit chance
0.7% in the next 30 daysHigher than 54% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper output encoding (CWE-116)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/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's JsonTemplateLayout https://logging.apache.org/log4j/2.x/manual/json-template-layout.html , in versions up to and including 2.25.3, produces invalid JSON output when log events contain non-finite floating-point values (NaN, Infinity, or -Infinity), which are prohibited by RFC 8259. This may cause downstream log processing systems to reject or fail to index affected records.

An attacker can exploit this issue only if both of the following conditions are met:

  • The application uses JsonTemplateLayout.
  • The application logs a MapMessage, or logs an object directly (e.g., via Logger.info(Object), which wraps it in an ObjectMessage), where the message contains an attacker-controlled floating-point value.

Users are advised to upgrade to Apache Log4j JSON Template Layout 2.25.4, which corrects this issue.

Note: The fix released in version 2.25.4 did not cover all affected code paths. CVE-2026-49844 was assigned to the remaining issue, which concerns the…

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.14.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-34481
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-34481