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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j JSON Template Layout | 2.14.0 – < 2.25.4, 3.0.0-alpha1 – ≤ 3.0.0-beta3 | 2.25.4 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | apache-log4j2 | No fix yet | — |
| Debian 13 | apache-log4j2 | No fix yet | — |
| Debian 12 | apache-log4j2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | apache-log4j2 +1 | No fix yet | — |
| Ubuntu 26.04 LTS | apache-log4j2 +1 | No fix yet | — |
| Ubuntu 25.10 | apache-log4j2 +1 | No fix yet | — |
| Ubuntu 24.04 LTS | apache-log4j2 +1 | No fix yet | — |
| Ubuntu 22.04 LTS | apache-log4j2 +1 | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | apache-log4j2 +1 | No fix yet | — |
| Ubuntu 18.04 LTS | apache-log4j2 +1 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | apache-log4j2 +1 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | apache-log4j1.2 | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | log4j | 2.20.0-2.1 | openSUSE-SU-2026:10544-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | apache-pulsar-4.2 | 4.2.1-r0 | — |
| Wolfi rolling | flink-2.1 | 2.1.1-r5 | — |
| Wolfi rolling | flink-2.2 | 2.2.0-r5 | — |
| Wolfi rolling | neo4j-2025.10 +1 | No fix yet | — |
| Wolfi rolling | neo4j-2026.05 | 2026.05.0-r1 | — |
| Wolfi rolling | solr-10 | 10.0.0-r1 | — |
| Wolfi rolling | spark-4.0-scala-2.13 | 4.0.2-r11 | — |
| Wolfi rolling | spark-4.1-scala-2.13 | 4.1.1-r15 | — |
| Wolfi rolling | strimzi-kafka-operator-kafka-init +7 | 0.51.0-r22 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.logging.log4j:log4j-layout-template-json | >= 2.14.0, < 2.25.4 | 2.25.4 | GHSA-w35j-pv5h-q9q9 |
| Maven | org.apache.logging.log4j:log4j-layout-template-json | >= 3.0.0-alpha1, <= 3.0.0-beta3 | — | GHSA-w35j-pv5h-q9q9 |
Advisories 25
- WID-SEC-2026-4090 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- WID-SEC-2026-1067 Apache log4j: Mehrere Schwachstellen ermöglichen Manipulation von Dateien BSI CERT-Bund (WID) · Oct 25, 2026
- WID-SEC-2026-2437 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 22, 2026
- WID-SEC-2026-4083 Oracle Retail Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- WID-SEC-2026-2444 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 7, 2026
- NCSC-2026-0312 Kwetsbaarheden verholpen in Oracle Financial Services NCSC-NL (Netherlands) · Aug 19, 2026
- NCSC-2026-0311 Kwetsbaarheden verholpen in Oracle Enterprise Manager NCSC-NL (Netherlands) · Aug 19, 2026
- WID-SEC-2026-2890 Oracle Enterprise Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 18, 2026
- WID-SEC-2026-2895 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 18, 2026
- WID-SEC-2026-2893 Oracle Hyperion: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 18, 2026
- WID-SEC-2026-2899 Oracle Supply Chain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 18, 2026
- WID-SEC-2026-2901 Oracle Retail Applications: Schwachstelle gefährdet Integrität BSI CERT-Bund (WID) · Aug 18, 2026
- NCSC-2026-0258 Kwetsbaarheden verholpen in Oracle Financial Services NCSC-NL (Netherlands) · Jul 22, 2026
- WID-SEC-2026-2436 Oracle Construction and Engineering: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 21, 2026
- WID-SEC-2026-2432 Oracle Spatial Studio: Schwachstelle gefährdet Integrität BSI CERT-Bund (WID) · Jul 21, 2026
- WID-SEC-2026-2450 Oracle Supply Chain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 21, 2026
- WID-SEC-2026-2448 Oracle Utilities Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 21, 2026
- WID-SEC-2026-2445 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 21, 2026
- WID-SEC-2026-2439 Oracle Retail Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 21, 2026
- WID-SEC-2026-2260 IBM Operational Decision Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 8, 2026
- NCSC-2026-0202 Kwetsbaarheden verholpen in Oracle Enterprise Manager NCSC-NL (Netherlands) · Jun 17, 2026
- NCSC-2026-0200 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Jun 17, 2026
- WID-SEC-2026-1943 Oracle Enterprise Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 16, 2026
- WID-SEC-2026-1942 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 16, 2026
- openSUSE-SU-2026:10544-1 log4j-2.20.0-2.1 on GA media SUSE / openSUSE Security Updates · Apr 15, 2026
References
- https://github.com/apache/logging-log4j2/pull/4080 patch
- https://logging.apache.org/security.html#CVE-2026-34481 vendor-advisory
- https://logging.apache.org/cyclonedx/vdr.xml vendor-advisory
- https://logging.apache.org/log4j/2.x/manual/json-template-layout.html related
- https://lists.apache.org/thread/n34zdv00gbkdbzt2rx9rf5mqz6lhopcv vendor-advisory