Skip to main content

Apache Log4j API EUVDEUVD-2026-43102

| CVE-2026-49844 MEDIUM
Improper Encoding or Escaping of Output (CWE-116)
2026-07-10 apache GHSA-qv9r-c865-cp47
6.3
CVSS 4.0 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker injects NaN/Infinity into application input
  2. Delivery
    Application constructs MapMessage with float value
  3. Exploit
    JsonTemplateLayout message resolver invokes MapMessage.asJson()
  4. Execution
    Bare non-finite token emitted in JSON output
  5. Persist
    Log record fails RFC 8259 parsing
  6. Impact
    Downstream 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Apache Log4j API 2.26.0 <2.26.1
Apache Log4j API 2.13.1 <2.25.5
Apache Log4j API 3.0.0-alpha1 ≤3.0.0-beta2

Affected Packages

maven org.apache.logging.log4j:log4j-api fix: 2.25.5, 2.26.1
euvd apache_log4j_api fix: 2.25.5, 2.26.1

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

Vendor (apache) PRIMARY 6.3 MEDIUM
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
vuln.today AI 4.0 MEDIUM

AC:H reflects two mandatory non-default conditions; scope changed (S:C) because impact falls on downstream log systems, not the vulnerable application itself.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

EPSS Score
0.8%
Top 48% exploitable
Prevalence
Ubiquitous
Log4j 2 is the dominant Java logging framework across enterprise deployments
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy