All vulnerabilities

Servers and applications

CVE-2026-49844

Improper encoding of non-finite floating-point values during MapMessage JSON serialization in Apache Log4j API produces output that is not valid JSON. This issue affects Apache Log4j API versions 2.13.1 through 2.25.4 and version 2.26.0. The fix for CVE-2026-34481 did not cover all code paths: when a MapMessage contains a non-finite IEEE 754 value (NaN, Infinity, or -Infinity),…

Severity
Medium 6.3
Published
10 Jul 2026
Last changed
25 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.25.5
Exploit chance
0.6% in the next 30 daysHigher than 49% 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:L/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

Improper encoding of non-finite floating-point values during MapMessage JSON serialization in Apache Log4j API produces output that is not valid JSON. This issue affects Apache Log4j API versions 2.13.1 through 2.25.4 and version 2.26.0.

The fix for CVE-2026-34481 did not cover all code paths: when a MapMessage contains a non-finite IEEE 754 value (NaN, Infinity, or -Infinity), MapMessage.asJson() emits the corresponding bare token. RFC 8259 does not permit these tokens, so a conformant parser rejects the resulting document.

The defect is reachable only when both of the following conditions hold:

  • The application uses the message resolver https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-template-resolver-message of JsonTemplateLayout or any other layout that relies on MapMessage.asJson() or MapMessage.getFormattedMessage(new String[]{"JSON"}).
  • The application logs a MapMessage that contains an attacker-controlled floating-point value.
From NVD. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Apache Log4jServers and applications · cpe:a:apache:log4j
  • Version 3.0.0-beta2
  • Version 3.0.0-beta1
  • Version 3.0.0-alpha1_rc2
  • Version 3.0.0-alpha1_rc1
All 7 release lines
  • From 2.13.1 before 2.25.5
  • Version 2.26.0
  • 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

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