Security mailing lists by PureSourceCode

CVE-2026-49844

MEDIUM 6.3CVSS 4.0

Apache Log4j API: Improper encoding of non-finite floating-point values during MapMessage JSON serialization

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:

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.

Published
10 Jul 2026
Last modified
25 Oct 2026
Assigned by
security@apache.org
NVD status
Analyzed
Weakness
CWE-116
Also known as
GHSA-qv9r-c865-cp47
Sources
NVDJSONOSV GHSA-qv9r-c865-cp47JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@apache.org (Secondary) CVSS 4.0 MEDIUM 6.3 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/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
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apache log4j
cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*
>= 2.13.1, < 2.25.5 2.25.5
NVD apache log4j
cpe:2.3:a:apache:log4j:2.26.0:*:*:*:*:*:*:*
= 2.26.0
NVD apache log4j
cpe:2.3:a:apache:log4j:3.0.0:alpha1:*:*:*:*:*:*
= 3.0.0
NVD apache log4j
cpe:2.3:a:apache:log4j:3.0.0:alpha1_rc1:*:*:*:*:*:*
= 3.0.0
NVD apache log4j
cpe:2.3:a:apache:log4j:3.0.0:alpha1_rc2:*:*:*:*:*:*
= 3.0.0
NVD apache log4j
cpe:2.3:a:apache:log4j:3.0.0:beta1:*:*:*:*:*:*
= 3.0.0
NVD apache log4j
cpe:2.3:a:apache:log4j:3.0.0:beta2:*:*:*:*:*:*
= 3.0.0
OSV Maven org.apache.logging.log4j:log4j-api >= 2.13.1, < 2.25.5 2.25.5
OSV Maven org.apache.logging.log4j:log4j-api >= 2.26.0, < 2.26.1 2.26.1

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 10 Jul 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 11 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.