Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker injects NaN/Infinity into application input
-
DeliveryApplication constructs MapMessage with float value
-
ExploitJsonTemplateLayout message resolver invokes MapMessage.asJson()
-
ExecutionBare non-finite token emitted in JSON output
-
PersistLog record fails RFC 8259 parsing
-
ImpactDownstream SIEM/aggregator drops or corrupts log event
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
|
| Exploitation Conditions | Exploitation requires both of the following conditions to be simultaneously true: (1) the application must be configured to use JsonTemplateLayout with the message resolver, or any layout that internally calls MapMessage.asJson() or MapMessage.getFormattedMessage(new String[]{"JSON"}) - this is not the default Log4j layout and requires explicit configuration; and (2) the attacker must be able to supply a non-finite IEEE 754 value (NaN, Infinity, or -Infinity) that the application places into a MapMessage key-value entry and subsequently logs. Exploitation is further limited to Apache Log4j API versions 2.13.1-2.25.4 and 2.26.0; default PatternLayout deployments are not affected. The impact is confined to downstream log consumers - the vulnerable host itself experiences no confidentiality, integrity, or availability loss per the CVSS 4.0 vector (VC:N/VI:N/VA:N). |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N) reflects a network-reachable flaw requiring no authentication, but constrained by a partial attack target (AT:P) and producing only low subsequent-system integrity impact. The AT:P metric aligns with the two mandatory conditions described: JsonTemplateLayout must be in use and the attacker must control a floating-point value that reaches a MapMessage. This combination is non-trivial and not default in most deployments, keeping real-world risk lower than the surface-level CVSS score implies. EPSS data is not provided; given the specificity of conditions and absence of KEV or public POC, opportunistic mass exploitation is unlikely. The primary risk is to organizations that pipe Log4j structured JSON output to SIEM, log aggregation (Elasticsearch, Splunk, Datadog), or alerting platforms - where a malformed document could silently drop or corrupt security-relevant log entries, creating a blind spot. This is a data-integrity and pipeline-reliability concern, not a remote code execution or credential exposure scenario. |
| Exploit ScenarioDerived | An attacker submits a crafted HTTP request or API payload to a Java application that logs request fields as a MapMessage with JsonTemplateLayout enabled. The payload contains a floating-point field set to NaN or Infinity - valid at the application layer. When Log4j serializes the log event, MapMessage.asJson() emits the bare token, producing a malformed JSON log record that a downstream SIEM or log aggregator's JSON parser rejects, silently dropping the event and creating a coverage gap in security monitoring. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 10, 2026
Malformed JSON output in Apache Log4j API versions 2.13.1-2.25.4 and 2.26.0 allows a remote attacker who can inject non-finite floating-point values (NaN, Infinity, -Infinity) into a logged MapMessage to corrupt downstream log records and disrupt log ingestion pipelines. This is an incomplete fix follow-on to CVE-2026-34481: the prior patch left code paths in MapMessage.asJson() and MapMessage.getFormattedMessage(["JSON"]) that still emit bare IEEE 754 non-finite tokens prohibited by RFC 8259. No public exploit or active exploitation (CISA KEV) has been identified; the CVSS 4.0 score of 6.3 reflects limited subsequent-system integrity impact rather than direct host compromise.
RemediationAI
Upgrade to Apache Log4j API 2.25.5 or 2.26.1, both of which emit RFC 8259-compliant representations for non-finite floating-point values. The upstream fix is available via GitHub pull request at https://github.com/apache/logging-log4j2/pull/4163; a tagged release should be obtained from the official Apache distribution. If immediate upgrade is not feasible, the most effective compensating control is to avoid using JsonTemplateLayout's message resolver for MapMessage types, or to replace the layout with a non-JSON format until patching is complete - this eliminates the vulnerable code path without requiring a code change to the application. Alternatively, applications can sanitize floating-point values before placing them into a MapMessage (replacing NaN/±Infinity with a sentinel string such as "null" or "undefined"), though this introduces application-level logic that must be maintained. Note that neither workaround addresses other potential incomplete-fix scenarios from CVE-2026-34481; upgrade is strongly preferred.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Log4j API (CPE: cpe:2.3:a:apache_software_foundation:apache_log4j_api:*:*:*:*:*:*:*:*) provides the logging facade and message types used by the Log4j 2 ecosystem. The affected code path lies in MapMessage, a key-value message type whose asJson() method serializes entries into a JSON object. The root cause is CWE-116 (Improper Encoding or Escaping of Output): IEEE 754 defines NaN and ±Infinity as valid floating-point states, but RFC 8259 (the JSON specification) explicitly forbids these tokens as bare values. When a MapMessage entry holds such a value, the serializer emits it literally - producing structurally invalid JSON. This defect surfaces specifically through JsonTemplateLayout's message resolver and any layout that delegates to MapMessage.asJson() or the JSON-format variant of getFormattedMessage(). The CVE is a bypass of the fix applied for CVE-2026-34481, indicating the prior remediation covered only some code paths within the serialization logic.
Know when Apache Log4J Api gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
AC:H reflects two mandatory non-default conditions; scope changed (S:C) because impact falls on downstream log systems, not the vulnerable application itself.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
DescriptionCVE.org
Improper encoding of non-finite floating-point values during MapMessage JSON serialization in Apache Log4j API produces output that is not valid JSON. This issue affects Apache Log4j API versions 2.13.1 through 2.25.4 and version 2.26.0.
The fix for CVE-2026-34481 did not cover all code paths: when a MapMessage contains a non-finite IEEE 754 value (NaN, Infinity, or -Infinity), MapMessage.asJson() emits the corresponding bare token. RFC 8259 does not permit these tokens, so a conformant parser rejects the resulting document.
The defect is reachable only when both of the following conditions hold:
- The application uses the message resolver https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-template-resolver-message of JsonTemplateLayout or any other layout that relies on MapMessage.asJson() or MapMessage.getFormattedMessage(new String[]{"JSON"}).
- The application logs a MapMessage that contains an attacker-controlled floating-point value.
An attacker who can supply a non-finite value can cause the affected layout to emit malformed JSON, which may corrupt the enclosing log record or disrupt downstream log ingestion and parsing.
Users are advised to upgrade to Apache Log4j API 2.25.5 or 2.26.1, both of which emit RFC 8259-compliant JSON for non-finite values.
Blast Radius
ecosystem impact- 625 maven packages depend on org.apache.logging.log4j:log4j-api (193 direct, 432 indirect)
Ecosystem-wide dependent count for version 2.13.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-43102
GHSA-qv9r-c865-cp47
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB