High severity · published Apr 10, 2026
CVE-2026-34481
Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout
7.5
CVSS
0.7%
EPSS
No
On KEV
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 MapMessage.asJson() serialization in Apache Log4j API and is fixed in versions 2.25.5 and 2.26.1.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 53% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LO
Log4j · Apache
2.14.0 before 2.25.4; 3.0.0; 3.0.0; 3.0.0; 3.0.0; 3.0.0; +1 more · source: NVD
AL
Apache Log4j JSON Template Layout · Apache Software Foundation
2.14.0 before 2.25.4; 3.0.0-alpha1 through 3.0.0-beta3 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-34481
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-34481
Issue Tracking
https://github.com/apache/logging-log4j2/pull/4080
Mailing List
https://lists.apache.org/thread/n34zdv00gbkdbzt2rx9rf5mqz6lhopcv
Product
https://logging.apache.org/cyclonedx/vdr.xml
Technical Description
https://logging.apache.org/log4j/2.x/manual/json-template-layout.html
Vendor Advisory
https://logging.apache.org/security.html#CVE-2026-34481
Mailing List
http://www.openwall.com/lists/oss-security/2026/04/10/10
More from Log4j
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
9.0
CVE-2021-45046
Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack
9.8
CVE-2022-23305
By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be inserted are converters from PatternLayout
9.8
CVE-2020-9493
Java deserialization in Chainsaw
9.8
CVE-2019-17571
Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be exploited to remotely execute arbitrary code when combined with…
