CVE-2026-34481
published medium CVSS 4.0 · 6.3Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | org.apache.logging.log4j:log4j-layout-template-jsonApache Log4j JSON Template Layout · 2.14.0 to < 2.25.4 · 3.0.0-alpha1 through 3.0.0-beta3 · Other versions: unaffected | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP7 | log4jnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | SLE-15-SP7 | log4j-javadocnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | SLE-15-SP7 | log4j-jclnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | SLE-15-SP7 | log4j-slf4jnoarch | Advisory build | 2.20.0-150200.4.33.1 | SUSE-SU-2026:1843-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
Show 35 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4js390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4jx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-bomaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-bomppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-boms390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-bomx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocs390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-javadocx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jcls390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jclx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guiaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guippc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guis390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-jmx-guix86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqlaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqlppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqls390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-nosqlx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4js390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-slf4jx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibs390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-taglibx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webs390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | log4j-webx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10544-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- apache · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Log4j JSON Template Layout | 2.14.0 to < 2.25.4 (affected · maven)3.0.0-alpha1 through 3.0.0-beta3 (affected · maven)Default: unaffected | apache · cna |
Weaknesses
1- CWE-116 CWE-116 Improper Encoding or Escaping of Output
References
6- http://www.openwall.com/lists/oss-security/2026/04/10/10
- https://github.com/apache/logging-log4j2/pull/4080
- https://lists.apache.org/thread/n34zdv00gbkdbzt2rx9rf5mqz6lhopcv
- https://logging.apache.org/cyclonedx/vdr.xml
- https://logging.apache.org/log4j/2.x/manual/json-template-layout.html
- https://logging.apache.org/security.html#CVE-2026-34481
Provider assertions
3apache · cna
Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 58e21d962b99ce9ecd28809c03dfd37fd2bc23b85f474e1e1080f8a536a29957
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record