CVE-2026-49844
Last modified
CVE-2026-49844 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.78% chance of exploitation in the next 30 days.
Description
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: * The application uses the message resolver https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-template-resolver-message of JsonTemplateLayout or any other layout that relies on MapMessage.asJson() or MapMessage.getFormattedMessage(new String[]{"JSON"}). * The application logs a MapMessage that contains an attacker-controlled floating-point value. 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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Apache | Log4j | >= 2.13.1, < 2.25.5 | — |
| Apache | Log4j | 2.26.0 | — |
| Apache | Log4j | 3.0.0 | Alpha1 |
References
- https://github.com/apache/logging-log4j2/pull/4163Issue Tracking, Patch
- https://logging.apache.org/cyclonedx/vdr.xmlVendor Advisory
- https://logging.apache.org/security.html#CVE-2026-49844Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-49844?
How severe is CVE-2026-49844?
How do I fix CVE-2026-49844?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-49839jq is a command-line JSON processor. Prior to 1.8.2,` jq --r…7.1
- CVE-2026-4984The Twilio integration webhook handler accepts any POST requ…8.2
- CVE-2026-49840FreeSWITCH is a Software Defined Telecom Stack enabling the …9.1
- CVE-2026-49841FreeSWITCH is a Software Defined Telecom Stack enabling the …9.8
- CVE-2026-49842FreeSWITCH is a Software Defined Telecom Stack enabling the …7.5
- CVE-2026-49843FreeSWITCH is a Software Defined Telecom Stack enabling the …5.3
- CVE-2026-49847FreeSWITCH is a Software Defined Telecom Stack enabling the …7.5
- CVE-2026-49848FreeSWITCH is a Software Defined Telecom Stack enabling the …4.3
- CVE-2026-4985A vulnerability was identified in dloebl CGIF up to 0.5.2. T…5.3
- CVE-2026-49851Mistune is a Python Markdown parser with renderers and plugi…8.7
- CVE-2026-49852joserfc is a Python library that provides an implementation …8.7
- CVE-2026-49853Tornado is a Python web framework and asynchronous networkin…7.7
Are you affected by CVE-2026-49844?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
