GHSA-qv9r-c865-cp47

Suggest an improvement
Source
https://github.com/advisories/GHSA-qv9r-c865-cp47
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-qv9r-c865-cp47/GHSA-qv9r-c865-cp47.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-qv9r-c865-cp47
Aliases
Downstream
Published
2026-07-11T00:31:48Z
Modified
2026-08-13T18:56:16Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Apache Log4j API: Improper encoding of non-finite floating-point values during MapMessage JSON serialization
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-116"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-08-13T18:28:30Z",
    "nvd_published_at":  "2026-07-10T22:16:42Z",
    "severity":  "MODERATE"
}
References

Affected packages

Maven / org.apache.logging.log4j:log4j-api

Package

Name
org.apache.logging.log4j:log4j-api
View open source insights on deps.dev
Purl
pkg:maven/org.apache.logging.log4j/log4j-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.13.1
Fixed
2.25.5

Affected versions

2.*
2.13.1
2.13.2
2.13.3
2.14.0
2.14.1
2.15.0
2.16.0
2.17.0
2.17.1
2.17.2
2.18.0
2.19.0
2.20.0
2.21.0
2.21.1
2.22.0
2.22.1
2.23.0
2.23.1
2.24.0
2.24.1
2.24.2
2.24.3
2.25.0
2.25.1
2.25.2
2.25.3
2.25.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-qv9r-c865-cp47/GHSA-qv9r-c865-cp47.json"

Maven / org.apache.logging.log4j:log4j-api

Package

Name
org.apache.logging.log4j:log4j-api
View open source insights on deps.dev
Purl
pkg:maven/org.apache.logging.log4j/log4j-api

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.26.0
Fixed
2.26.1

Affected versions

2.*
2.26.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-qv9r-c865-cp47/GHSA-qv9r-c865-cp47.json"