CVE-2026-34481 Details
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.
A vulnerability exists in Apache Log4j's JsonTemplateLayout, in versions up to and including 2.25.3. The layout generates invalid JSON when log events include non-finite floating-point values (NaN, Infinity, or -Infinity), which RFC 8259 disallows. This flaw can lead to downstream log processing systems rejecting or failing to index the affected records. The issue can be exploited if the application uses JsonTemplateLayout and logs a MapMessage with an attacker-controlled floating-point value.
Upgrade to Apache Log4j JSON Template Layout version 2.25.4, which addresses this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/04/10/10 | CVE | Mailing ListThird Party Advisory |
| https://github.com/apache/logging-log4j2/pull/4080 | [email protected] | Issue Tracking |
| https://lists.apache.org/thread/n34zdv00gbkdbzt2rx9rf5mqz6lhopcv | [email protected] | Mailing ListVendor Advisory |
| https://logging.apache.org/cyclonedx/vdr.xml | [email protected] | Product |
| https://logging.apache.org/log4j/2.x/manual/json-template-layout.html | [email protected] | Technical Description |
| https://logging.apache.org/security.html#CVE-2026-34481 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache log4j | >= 2.14.0, < 2.25.4 3.0.0 alpha1 3.0.0 alpha1_rc1 3.0.0 alpha1_rc2 3.0.0 beta1 3.0.0 beta2 3.0.0 beta3 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 11, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 24, 2026 | Initial Analysis | [email protected] |
| Apr 10, 2026 | CVE Modified | CVE |
| Apr 10, 2026 | New CVE Received | [email protected] |