CVE-2026-34481: apache software foundation apache log4j json template layout Improper Encoding or Escaping of Output
Vulnerability summary
CVE-2026-34481 is a high (CVSS 7.5) Improper Encoding or Escaping of Output vulnerability in apache software foundation apache log4j json template layout. EPSS estimates a 0.85% chance of exploitation in the next 30 days, higher than 57.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 10-04-2026PublishedVulnerability first disclosed.
- 11-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
- OSV · MavenEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
- NVDNIST6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
0.85%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
+0.16 pp
From 0.69% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard50 products
- apache-camel-karavan-devmode< 4.14.2-r8
- apache-pulsar-4.0< 4.0.9-r11
- apache-pulsar-4.1All versions (No fix recorded)
- apache-pulsar-4.2< 4.2.1-r0
- apache-pulsar-fips-4.0< 4.0.9-r11
Wolfi24 products
- apache-pulsar-4.1All versions (No fix recorded)
- apache-pulsar-4.2< 4.2.1-r0
- flink-2.1< 2.1.1-r5
- flink-2.2< 2.2.0-r5
- kafka_exporter-strimzi-compat< 1.2.0-r5
Ubuntu2 products
- apache-log4j1.2All versions (No fix recorded)
- apache-log4j2All versions (No fix recorded)
Apache1 product
- 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
Apache software foundation1 product
- apache log4j json template layout≥ 2.14.0, < 2.25.4 | ≥ 3.0.0-alpha1, ≤ 3.0.0-beta3
Debian1 product
- apache-log4j2All versions (No fix recorded)
Org.apache.logging.log4j1 product
- log4j-layout-template-json≥ 2.14.0, < 2.25.4 | ≥ 3.0.0-alpha1, ≤ 3.0.0-beta3
7 vendors · 80 products
References
13 links- lists.apache.org/thread/n34zdv00gbkdbzt2rx9rf5mqz6lhopcvVendor AdvisoryREPORTAdvisoryWEBMailing List