CVEfocus › CVE database › CVE-2026-34481

CVE-2026-34481Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point…

CVSS 6.3 MediumEPSS 0.9% (higher than 57% of CVEs)Published 2026-04-10Updated 2026-07-11Assigner: apache

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.

CWE-116

What to do

Fixed builds are available from Maven: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
12Fix pending
6Under investigation
5Will not fix
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10apache-log4j1.2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 26.10apache-log4j2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 26.04apache-log4j1.2Under investigationUBUNTU-CVE-2026-34481
Ubuntu 26.04apache-log4j2Under investigationUBUNTU-CVE-2026-34481
Ubuntu 25.10apache-log4j1.2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-34481
Ubuntu 25.10apache-log4j2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-34481
Ubuntu 24.04apache-log4j1.2Under investigationUBUNTU-CVE-2026-34481
Ubuntu 24.04apache-log4j2Under investigationUBUNTU-CVE-2026-34481
Ubuntu 22.04apache-log4j1.2Under investigationUBUNTU-CVE-2026-34481
Ubuntu 22.04apache-log4j2Under investigationUBUNTU-CVE-2026-34481
Ubuntu 20.04apache-log4j1.2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 20.04apache-log4j2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 18.04apache-log4j1.2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 18.04apache-log4j2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 16.04apache-log4j1.2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 16.04apache-log4j2Fix pendingUBUNTU-CVE-2026-34481
Ubuntu 14.04apache-log4j1.2Fix pendingUBUNTU-CVE-2026-34481
Debian 14apache-log4j2Fix pendingDEBIAN-CVE-2026-34481
Debian 13apache-log4j2Fix pendingDEBIAN-CVE-2026-34481
Debian 12apache-log4j2Fix pendingDEBIAN-CVE-2026-34481
Red Hat Enterprise Linux 9log4jWill not fix
Will not fix
Red Hat Enterprise Linux 9log4j-jclWill not fix
Will not fix
Red Hat Enterprise Linux 9log4j-slf4jWill not fix
Will not fix
Red Hat Enterprise Linux 8log4jNot affected
Red Hat Enterprise Linux 8log4j-jclNot affected
Red Hat Enterprise Linux 8log4j-slf4jNot affected
Red Hat Enterprise Linux 8log4j-webNot affected
Maven libraryorg.apache.logging.log4j:log4j-layout-template-jsonFixed2.25.4GHSA-w35j-pv5h-q9q9

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.