
CVE catalog
CVE-2026-34481
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
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.69% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | apache-log4j2 | sid | 2.26.1-1 | fixed |
| Debian | apache-log4j2 | forky | 2.19.0-2 | vulnerable |
| Debian | apache-log4j2 | trixie | 2.19.0-2 | vulnerable |
| Debian | apache-log4j2 | bookworm | 2.19.0-2 | vulnerable |
| Debian | apache-log4j1.2 | sid | 1.2.17-11 | not affected |
| Debian | apache-log4j1.2 | forky | 1.2.17-11 | not affected |
| Debian | apache-log4j1.2 | trixie | 1.2.17-11 | not affected |
| Debian | apache-log4j1.2 | bookworm | 1.2.17-11 | not affected |
| Cpe | apache-log4j2 | Not reported | Not reported | vulnerable |
| Cpe | log4j | Not reported | 2.25.4 | fixed |
| Cpe | log4j | Not reported | Not reported | unknown |
| Cpe | log4j | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | apache-log4j2 | source | sid | 2.26.1-1 | not yet assigned | Not reported | [1133846] |
| Debian | apache-log4j2 | source | forky | (unfixed) | not yet assigned | Not reported | [1133846] |
| Debian | apache-log4j2 | source | trixie | (unfixed) | not yet assigned | Not reported | [1133846] |
| Debian | apache-log4j2 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1133846] |
| Debian | apache-log4j1.2 | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | apache-log4j1.2 | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | apache-log4j1.2 | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | apache-log4j1.2 | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Cpe | log4j | cpe | Not reported | 2.25.4 | Not reported | Not reported | Not reported |
Notes
[trixie] apache-log4j2: Minor issue [bookworm] apache-log4j2: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [liblog4j2-java]Affected
Source package: [apache-log4j2]
Details (2)
2.19.0-2· all · bookwormAffected
nvd · apache-log4j2 · debian · bookworm; nvd · apache-log4j2 · debian · 12
2.19.0-2· all · bookwormAffected
nvd · apache-log4j2 · debian · bookworm; nvd · apache-log4j2 · debian · 12
- [liblog4j1.2-java]Not affected
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · bookwormNot affected
nvd · apache-log4j1.2 · debian · bookworm
1.2.17-11· all · bookwormNot affected
nvd · apache-log4j1.2 · debian · bookworm
- [liblog4j1.2-java-doc]Not affected
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · bookwormNot affected
nvd · apache-log4j1.2 · debian · bookworm
1.2.17-11· all · bookwormNot affected
nvd · apache-log4j1.2 · debian · bookworm
[Debian 13 (Trixie)]
- [liblog4j2-java]Affected
Source package: [apache-log4j2]
Details (2)
2.19.0-2· all · trixieAffected
nvd · apache-log4j2 · debian · 13
2.19.0-2· all · trixieAffected
nvd · apache-log4j2 · debian · 13
Observed:
References
- [http://www.openwall.com/lists/oss-security/2026/04/10/10]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10544-1.json]
- [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]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-34481]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-34481]
- [https://security-tracker.debian.org/tracker/CVE-2026-34481]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34481.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1942.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]