CVE-2026-49844Apache Log4j API: Improper serialization of non-finite floating-point values in…
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-49844 | |
| Ubuntu 26.04 | apache-log4j2 | Under investigation | UBUNTU-CVE-2026-49844 | |
| Ubuntu 24.04 | apache-log4j2 | Under investigation | UBUNTU-CVE-2026-49844 | |
| Ubuntu 22.04 | apache-log4j2 | Under investigation | UBUNTU-CVE-2026-49844 | |
| Ubuntu 20.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-49844 | |
| Ubuntu 18.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-49844 | |
| Ubuntu 16.04 | apache-log4j2 | Fix pending | UBUNTU-CVE-2026-49844 | |
| Debian 14 | apache-log4j2 | Fix pending | DEBIAN-CVE-2026-49844 | |
| Debian 13 | apache-log4j2 | Fix pending | DEBIAN-CVE-2026-49844 | |
| Debian 12 | apache-log4j2 | Fix pending | DEBIAN-CVE-2026-49844 | |
| Red Hat Enterprise Linux 9 | pki-resteasy-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-jackson2-provider | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-servlet-initializer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | resteasy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resteasy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Fix pending Fix deferred | ||
| Maven library | org.apache.logging.log4j:log4j-api | Fixed | 2.26.1 | GHSA-qv9r-c865-cp47 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Log4j API: affected: 2.13.1 to before 2.25.5, 2.26.0 to before 2.26.1, 3.0.0-alpha1 to 3.0.0-beta2; fixed in
2.25.5,2.26.1
Vendor advisories:
- https://github.com/apache/logging-log4j2/pull/4163 (patch)
- https://logging.apache.org/cyclonedx/vdr.xml (vendor-advisory)
- https://logging.apache.org/security.html#CVE-2026-49844 (vendor-advisory)
References
- https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-template-resolver-message
- https://github.com/apache/logging-log4j2/pull/4163
- https://logging.apache.org/cyclonedx/vdr.xml
- https://logging.apache.org/security.html#CVE-2026-49844
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.