Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.logging.log4j/log4j-api
  4. ›
  5. CVE-2026-49844

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

July 11, 2026 (updated August 13, 2026)

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:

References

  • github.com/advisories/GHSA-qv9r-c865-cp47
  • github.com/apache/logging-log4j2/commit/19edb23e162d6c728a8c2221a240037d389ed300
  • github.com/apache/logging-log4j2/commit/feadf8eb0b4acb6ddfa4c0ab2bbc6d88b8e12d82
  • github.com/apache/logging-log4j2/pull/4163
  • github.com/apache/logging-log4j2/releases/tag/rel/2.25.5
  • github.com/apache/logging-log4j2/releases/tag/rel/2.26.1
  • logging.apache.org/cyclonedx/vdr.xml
  • logging.apache.org/log4j/2.x/manual/json-template-layout.html
  • logging.apache.org/security.html
  • nvd.nist.gov/vuln/detail/CVE-2026-49844

Code Behaviors & Features

Detect and mitigate CVE-2026-49844 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.13.1 before 2.25.5, all versions starting from 2.26.0 before 2.26.1

Fixed versions

  • 2.25.5
  • 2.26.1

Solution

Upgrade to versions 2.25.5, 2.26.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output

Source file

maven/org.apache.logging.log4j/log4j-api/CVE-2026-49844.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 10 Sep 2026 00:18:43 +0000.