Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-49844

MEDIUM 6.3EPSS 54%

Apache Log4j API: Improper serialization of non-finite floating-point values in MapMessage.asJson()

Also known as GHSA-qv9r-c865-cp47

Mitigation

  • Upgrade org.apache.logging.log4j:log4j-api to one of 2.25.5, 2.26.1 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.apache.logging.log4j:log4j-api (>= 2.13.1, < 2.25.5)
  • Anyone running Apache Software Foundation Apache Log4j API >= 2.13.1, < 2.25.5; >= 2.26.0, < 2.26.1; >= 3.0.0-alpha1, <= 3.0.0-beta2

Vulnerability facts

Affected
org.apache.logging.log4j:log4j-api >= 2.13.1, < 2.25.5
Fixed in
2.25.5, 2.26.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: Low
  • Availability impact on other systems: None
EPSS
0.81% chance of exploitation in 30 days (percentile 54, 2026-11-26)
CWE
CWE-116
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.apache.logging.log4j:log4j-api>= 2.13.1, < 2.25.52.25.5, 2.26.1osv
Apache Software Foundation Apache Log4j API>= 2.13.1, < 2.25.5; >= 2.26.0, < 2.26.1; >= 3.0.0-alpha1, <= 3.0.0-beta2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-49844. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-49844.md
Affected: org.apache.logging.log4j:log4j-api >= 2.13.1, < 2.25.5
Fixed in: 2.25.5, 2.26.1

Steps:
1. Search this machine and project for org.apache.logging.log4j:log4j-api (Maven), Apache Software Foundation Apache Log4j API: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-49844 being exploited?

There is no confirmed exploitation: CVE-2026-49844 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-49844?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-49844?

org.apache.logging.log4j:log4j-api >= 2.13.1, < 2.25.5.

Is there a fix for CVE-2026-49844?

Yes. Fixed in 2.25.5, 2.26.1. Upgrade org.apache.logging.log4j:log4j-api to one of 2.25.5, 2.26.1 (or later in the same release line).

How do I check if I'm affected by CVE-2026-49844?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors