CVE-2026-49844: Malformed JSON in Apache Log4j API MapMessage Serialization
- Vendor
- Apache Software Foundation
CVE-2026-49844 is an improper output encoding vulnerability in Apache Log4j API versions 2.13.1 through 2.25.4 and version 2.26.0. When a MapMessage contains a non-finite IEEE 754 floating-point value such as NaN, Infinity, or -Infinity, MapMessage.asJson() emits the value as a bare token prohibited by RFC 8259. The issue affects the JsonTemplateLayout message resolver and other layouts using MapMessage.asJson() or MapMessage.getFormattedMessage(new String[]{"JSON"}). It results from serialization code paths not covered by the fix for CVE-2026-34481. Attacker-controlled non-finite values can produce malformed JSON, corrupting log records or disrupting downstream processing.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the integrity and usability of structured logging output. Conformant JSON parsers reject affected documents, potentially causing enclosing log records to be rejected or corrupted and disrupting downstream log ingestion and parsing. Code execution, privilege escalation, and confidential data disclosure are not established consequences of this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until an update is deployed, validate floating-point values before adding them to MapMessage and reject or sanitize NaN, Infinity, and -Infinity. Avoid passing attacker-controlled non-finite values through JsonTemplateLayout's message resolver or other layouts using the affected JSON serialization methods.
Remediation
Patch, then assume compromise.
Upgrade Apache Log4j API to version 2.25.5 or 2.26.1, which serialize non-finite values as RFC 8259-compliant JSON. Update related Log4j packages as appropriate. For products bundling Log4j, apply the corresponding vendor-supported security update.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-49844 exploited in the wild?
- As of Nov 24, 2026, Mallory has no reports of CVE-2026-49844 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-49844?
- As of Nov 24, 2026, Mallory has found no public exploit for CVE-2026-49844.
- Is there a patch for CVE-2026-49844?
- Upgrade Apache Log4j API to version 2.25.5 or 2.26.1, which serialize non-finite values as RFC 8259-compliant JSON. Update related Log4j packages as appropriate.
- What products are affected by CVE-2026-49844?
- Apache Software Foundation Log4j and Apache Software Foundation Log4J-Api.
- How severe is CVE-2026-49844?
- CVE-2026-49844 has a CVSS v4 score of 6.3 (Medium) and an EPSS score of 0.81% (54th percentile) as of Nov 24, 2026.
Recent activity
42 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.