Skip to main content
No exploitation reportedFix available

CVE-2026-34481

No exploitation reported by the sources we read.

  • Published2026-04-10
  • Fixed in2.25.4
  • WeaknessCWE-116

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-04-1016:16CVE publishedNVD

Versions per branch

NVD · OSV
Apache Log4j
BranchAffectedFixed in
2.x≥ 2.14.0, < 2.25.42.25.4
3.0= 3.0.0no fix published
3.0≥ 3.0.0-alpha1, ≤ 3.0.0-beta3no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache Log4j JSON Template Layoutother versions: not affected

    package org.apache.logging.log4j:log4j-layout-template-jsonhttps://repo.maven.apache.org/maven2

    Affected
    • ≥ 2.14.0, < 2.25.4fixed in 2.25.4maven
    • ≥ 3.0.0-alpha1, ≤ 3.0.0-beta3no fix statedmaven

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-07-11

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-camel-karavan-devmodeChainguardall versions · fixed in 4.14.2-r8
  • apache-log4j1.2Ubuntu:Pro:14.04:LTSall versions · no fixed version listed
  • apache-log4j1.2Ubuntu:26.04:LTSall versions · no fixed version listed
  • apache-log4j1.2Ubuntu:24.04:LTSall versions · no fixed version listed
  • apache-log4j1.2Ubuntu:22.04:LTSall versions · no fixed version listed
  • apache-log4j1.2Ubuntu:20.04:LTSall versions · no fixed version listed
  • apache-log4j1.2Ubuntu:18.04:LTSall versions · no fixed version listed
  • apache-log4j2Ubuntu:Pro:26.04:LTSall versions · no fixed version listed

95 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-34481 Red Hat Product Security7 products fixed · 5 known affected

    org.apache.logging.log4j: Apache Log4j JsonTemplateLayout: Denial of Service via invalid JSON output

    log4j-jcl as a component of Red Hat Enterprise Linux 9 · log4j-slf4j as a component of Red Hat Enterprise Linux 9 · log4j.src as a component of Red Hat Enterprise Linux 9 · +2 more

  • RHSA-2026:66545 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat AMQ Broker 7.13.6 release and security update

  • RHSA-2026:66488 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat AMQ Broker 7.14.1 release and security update

  • RHSA-2026:54435 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Streams for Apache Kafka 3.2.1 release and security update

  • RHSA-2026:37390 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Build of Apache Camel 4.18.1.P1 for Spring Boot release.

  • RHSA-2026:22619 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Data Grid 8.6.1 security update

1 more advisory

Full record on NVD

Fix

  1. Update Apache Log4j to 2.25.4
  2. Vendor fix Red Hat Product Security RHSA-2026:66545 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings. The References section of this erratum contains a download link (you must log in to download the update).
  3. Vendor fix Red Hat Product Security RHSA-2026:54435 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2026:22619 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  5. Vendor fix Red Hat Product Security RHSA-2026:21773 · 2 productsThe container image provided by this update can be downloaded from the Red Hat container registry at registry.redhat.io using the "podman pull" command.
  6. Workaround from the vendor Red Hat Product Security RHSA-2026:66545 · 1 productMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  7. No fix available, says the vendor Red Hat Product Security CVE-2026-34481 · 1 productAffected

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 4.0 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
Published
2026-04-10
Last modified
2026-10-26
NVD status
Modified
MSRC title
Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout
GitHub advisory
GHSA-w35j-pv5h-q9q9

Frequently asked questions

What is 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 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.

Is CVE-2026-34481 actively exploited?

Active exploitation of CVE-2026-34481 has not been confirmed. Its EPSS score was 0.7% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-34481?

CVE-2026-34481 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running org.apache.logging.log4j? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record