{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-34481","id":"CVE-2026-34481","title":"Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout","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.\n\nAn atta","descriptionLong":"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.\n\nAn attacker can exploit this issue only if both of the following conditions are met:\n\n  *  The application uses JsonTemplateLayout.\n  *  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.\n\n\nUsers are advised to upgrade to Apache Log4j JSON Template Layout 2.25.4, which corrects this issue.\n\nNote: 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.","published":"2026-04-10T15:43:00.100Z","updated":"2026-10-28T02:31:01.034811421Z","reserved":"2026-03-28T19:23:37.127Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"4.0","score":6.3,"vector":"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","rating":"medium","source":"apache"},"metrics":[{"version":"4.0","score":6.3,"vector":"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","rating":"medium","source":"apache"},{"version":"4.0","score":6.3,"vector":"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/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","rating":"medium","source":"apache.org"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"}],"rating":"medium","products":["Apache Software Foundation Apache Log4j JSON Template Layout"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Log4j JSON Template Layout","defaultStatus":"unaffected","versions":[{"lessThan":"2.25.4","status":"affected","version":"2.14.0","versionType":"maven"},{"lessThanOrEqual":"3.0.0-beta3","status":"affected","version":"3.0.0-alpha1","versionType":"maven"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.logging.log4j:log4j-layout-template-json","purl":"pkg:maven/org.apache.logging.log4j/log4j-layout-template-json","ranges":[">=2.14.0 <2.25.4",">=3.0.0-alpha1 <=3.0.0-beta3"],"fixed":["2.25.4"],"advisory":"GHSA-w35j-pv5h-q9q9"}],"cwes":["CWE-116"],"aliases":["GHSA-w35j-pv5h-q9q9"],"references":[{"url":"https://github.com/apache/logging-log4j2/pull/4080","tags":["patch","Issue Tracking","fix","web"]},{"url":"https://logging.apache.org/security.html#CVE-2026-34481","tags":["vendor-advisory","Vendor Advisory","advisory","web"]},{"url":"https://logging.apache.org/cyclonedx/vdr.xml","tags":["vendor-advisory","Product","advisory","web"]},{"url":"https://logging.apache.org/log4j/2.x/manual/json-template-layout.html","tags":["related","Technical Description","web"]},{"url":"https://lists.apache.org/thread/n34zdv00gbkdbzt2rx9rf5mqz6lhopcv","tags":["vendor-advisory","Mailing List","Vendor Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/10/10","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://repo.maven.apache.org/maven2","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34481.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34481","tags":["advisory"]},{"url":"https://github.com/apache/logging-log4j2","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00718,"epssPercentile":0.54752,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-34481","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34481","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-34481","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w35j-pv5h-q9q9","ok":true,"note":"GHSA-w35j-pv5h-q9q9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-34481","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["log4j"],"critical":[],"attention":null}