Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 6 fixed, 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Log4j JSON Template Layout | 2.14.0 to before 2.25.4; 3.0.0-alpha1 – 3.0.0-beta3 | 2.25.4 | Patch available | CNA |
| — | org.apache.logging.log4j:log4j-layout-template-json (Maven) | 2.14.0 to before 2.25.4 | 2.25.4 | Patch available | GHSA-w35j-pv5h-q9q9 |
| — | org.apache.logging.log4j:log4j-layout-template-json (Maven) | 3.0.0-alpha1 – 3.0.0-beta3 | — | No fix listed | GHSA-w35j-pv5h-q9q9 |
- Apache Log4j JSON Template Layout VendorApache Affected 2.14.0 to before 2.25.4; 3.0.0-alpha1 – 3.0.0-beta3 Fixed in 2.25.4 Patch available CNA
- org.apache.logging.log4j:log4j-layout-template-json (Maven) Vendor— Affected 2.14.0 to before 2.25.4 Fixed in 2.25.4 Patch available GHSA-w35j-pv5h-q9q9
- org.apache.logging.log4j:log4j-layout-template-json (Maven) Vendor— Affected 3.0.0-alpha1 – 3.0.0-beta3 Fixed in — No fix listed GHSA-w35j-pv5h-q9q9
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:* | 2.14.0 to before 2.25.4 | Vulnerable | Apache |
| cpe:2.3:a:apache:log4j:3.0.0:alpha1:*:*:*:*:*:* | 3.0.0 alpha1 | Vulnerable | Apache |
| cpe:2.3:a:apache:log4j:3.0.0:alpha1_rc1:*:*:*:*:*:* | 3.0.0 alpha1_rc1 | Vulnerable | Apache |
| cpe:2.3:a:apache:log4j:3.0.0:alpha1_rc2:*:*:*:*:*:* | 3.0.0 alpha1_rc2 | Vulnerable | Apache |
| cpe:2.3:a:apache:log4j:3.0.0:beta1:*:*:*:*:*:* | 3.0.0 beta1 | Vulnerable | Apache |
| cpe:2.3:a:apache:log4j:3.0.0:beta2:*:*:*:*:*:* | 3.0.0 beta2 | Vulnerable | Apache |
| cpe:2.3:a:apache:log4j:3.0.0:beta3:*:*:*:*:*:* | 3.0.0 beta3 | Vulnerable | Apache |
- cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:* Versions 2.14.0 to before 2.25.4 Vulnerable ·Apache
- cpe:2.3:a:apache:log4j:3.0.0:alpha1:*:*:*:*:*:* Versions 3.0.0 alpha1 Vulnerable ·Apache
- cpe:2.3:a:apache:log4j:3.0.0:alpha1_rc1:*:*:*:*:*:* Versions 3.0.0 alpha1_rc1 Vulnerable ·Apache
- cpe:2.3:a:apache:log4j:3.0.0:alpha1_rc2:*:*:*:*:*:* Versions 3.0.0 alpha1_rc2 Vulnerable ·Apache
- cpe:2.3:a:apache:log4j:3.0.0:beta1:*:*:*:*:*:* Versions 3.0.0 beta1 Vulnerable ·Apache
- cpe:2.3:a:apache:log4j:3.0.0:beta2:*:*:*:*:*:* Versions 3.0.0 beta2 Vulnerable ·Apache
- cpe:2.3:a:apache:log4j:3.0.0:beta3:*:*:*:*:*:* Versions 3.0.0 beta3 Vulnerable ·Apache
Remediation
- Fix · CNA Apache Log4j JSON Template Layout (Apache Software Foundation) Fixed in 2.25.4
- Fix · GHSA-w35j-pv5h-q9q9 org.apache.logging.log4j:log4j-layout-template-json (Maven) Fixed in 2.25.4 Advisory →
Red Hat 6 advisories
- RHSA-2026:66545 Released 2026-09-10 · Red Hat rating ImportantRed Hat AMQ Broker 7.13.6 release and security update
- Red Hat AMQ Broker 7.13.6
- RHSA-2026:66488 Released 2026-09-10 · Red Hat rating ImportantRed Hat AMQ Broker 7.14.1 release and security update
- Red Hat AMQ Broker 7.14.1
- RHSA-2026:54435 Released 2026-08-12 · Red Hat rating ImportantStreams for Apache Kafka 3.2.1 release and security update
- Streams for Apache Kafka 3.2.1
Show 3 more Red Hat advisories
- RHSA-2026:37390 Released 2026-07-09 · Red Hat rating ImportantRed Hat Build of Apache Camel 4.18.1.P1 for Spring Boot release.
- Red Hat build of Apache Camel 4.18.1.P1 for Spring Boot 3.5.16
- RHSA-2026:22619 Released 2026-06-02 · Red Hat rating ImportantRed Hat Data Grid 8.6.1 security update
- Red Hat Data Grid 8.6.1
- RHSA-2026:21773 Released 2026-05-28 · Red Hat rating ImportantRed Hat Offline Knowledge Portal security and content update
- Red Hat Offline Knowledge Portal 1.2.13 registry.redhat.io/offline-knowledge-portal/rhokp-rhel9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Enterprise Application Platform 7 | Affected | No fix planned: Will not fix |
| Red Hat Offline Knowledge Portal | Affected | No fix yet |
| Red Hat AMQ Broker 7.13.6 | Fixed | RHSA-2026:66545 |
| Red Hat AMQ Broker 7.14.1 | Fixed | RHSA-2026:66488 |
| Red Hat Data Grid 8.6.1 | Fixed | RHSA-2026:22619 |
| Red Hat Offline Knowledge Portal 1.2.13 | Fixed | RHSA-2026:21773 |
| Red Hat build of Apache Camel 4.18.1.P1 for Spring Boot 3.5.16 | Fixed | RHSA-2026:37390 |
| Streams for Apache Kafka 3.2.1 | Fixed | RHSA-2026:54435 |
Not affected: 3 products
- Red Hat Enterprise Linux 8
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34481
- 2026-10-03 Alias added: GHSA-w35j-pv5h-q9q9
- 2026-10-10 Affected versions changed · Red Hat
References
Advisory 5
More Apache Log4j vulnerabilities
- TI-2021-19919 Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints KEVCVSS 3.1CRITICAL 10.0
- TI-2021-20393 Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack KEVCVSS 3.1CRITICAL 9.0
- TI-2017-03645 Deserialization of untrusted data in Apache Log4j CVSS 3.1CRITICAL 9.8
- TI-2019-13113 Deserialization of untrusted data in Apache Log4j CVSS 3.1CRITICAL 9.8
- TI-2022-07428 SQL injection in JDBC Appender in Apache Log4j V1 CVSS 3.1CRITICAL 9.8
- TI-2022-07425 Deserialization of untrusted data in JMSSink in Apache Log4j 1.x CVSS 3.1HIGH 8.8
Sources
- CVE-2026-34481 · CVE Program
- CVE-2026-34481 · NVD
- FIRST EPSS
- GHSA-w35j-pv5h-q9q9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-34481 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences