Improper JSON Encoding in Apache Log4j API Affects Logging Functionality
CVE-2026-49844

6.3MEDIUM

Key Information:

Vendor

Apache

Vendor
CVE Published:
10 July 2026

What is CVE-2026-49844?

A vulnerability exists in the Apache Log4j API, specifically related to the improper encoding of non-finite floating-point values during JSON serialization of MapMessage. When an application using the JsonTemplateLayout message resolver logs a MapMessage containing a non-finite floating-point value such as NaN, Infinity, or -Infinity, it results in the generation of invalid JSON output. This output can disrupt log ingestion and parsing by downstream systems due to failure to comply with RFC 8259. Users are strongly recommended to upgrade to Apache Log4j API version 2.25.5 or 2.26.1 to ensure proper handling of these problematic values.

Affected Version(s)

Apache Log4j API 2.13.1 < 2.25.5

Apache Log4j API 2.26.0 < 2.26.1

Apache Log4j API 3.0.0-alpha1 <= 3.0.0-beta2

References

CVSS V4

Score:
6.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Himanshu Anand
.