CVE-2026-49844 Apache Log4j API: Improper serialization of non-finite floating-point values in MapMessage.asJson()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
66 packages: 3 fixed, 63 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/apache-log4j2(Debian 12) | = 2.19.0-2; = 2.26.1-1; All versions | No fix listed | No fix yet |
| debian/apache-log4j2(Debian 13) | = 2.19.0-2; = 2.26.1-1; All versions | No fix listed | No fix yet |
| debian/apache-log4j2(Debian 14) | = 2.19.0-2; = 2.26.1-1; All versions | No fix listed | No fix yet |
| redhat/bazel7(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/bazel8(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/openvsx-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/pluginregistry-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/eap74-els-openjdk11-openshift-rhel8/eap74-els-openjdk11-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/eap74-els-openjdk17-openshift-rhel8/eap74-els-openjdk17-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/eap74-els-openjdk8-openshift-rhel8/eap74-els-openjdk8-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-7-eap74-els-openjdk11-openshift-rhel8/jboss-eap-7-eap74-els-openjdk11-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-7-eap74-els-openjdk17-openshift-rhel8/jboss-eap-7-eap74-els-openjdk17-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/jws5-jboss-logging(Red Hat jboss_enterprise_web_server 5) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat amq_broker 7) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat amq_clients 2023) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat amq_streams 2) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat amq_streams 3) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat apache_camel_hawtio 4) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat camel_quarkus 3) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat camel_spring_boot 4) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat cryostat 4) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat jboss_data_grid 8) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| redhat/log4j-api(Red Hat red_hat_single_sign_on 7) | All versions | No fix listed | No fix yet |
| redhat/offline-knowledge-portal/rhokp-rhel9(Red Hat offline_knowledge_portal 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9(Red Hat serverless 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9(Red Hat serverless 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9(Red Hat serverless 1) | All versions | No fix listed | No fix yet |
… and 36 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.logging.log4j/log4j-api(Maven) | >= 2.13.1, < 2.25.5 | 2.25.5 |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.13.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.13.2 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.13.3 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.14.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.14.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.15.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.16.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.17.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.17.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.17.2 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.18.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.19.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.20.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.21.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.21.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.22.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.22.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.23.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.23.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.24.0 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.24.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.24.2 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.24.3 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.25.0 | No fix listed |
Show 87 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.logging.log4j/log4j-api(Maven) | = 2.25.1 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.25.2 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.25.3 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.25.4 | No fix listed |
| org.apache.logging.log4j/log4j-api(Maven) | >= 2.26.0, < 2.26.1 | 2.26.1 |
| org.apache.logging.log4j/log4j-api(Maven) | = 2.26.0 | No fix listed |
| apache log4j api(Maven) | >= 2.13.1, < 2.25.5 | 2.25.5 |
| apache log4j api(Maven) | >= 2.26.0, < 2.26.1 | 2.26.1 |
| apache log4j api(Maven) | >= 3.0.0-alpha1, <= 3.0.0-beta2 | No fix listed |
| redhat/log4j-api(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9(Red Hat:serverless:1) | All versions | No fix listed |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9(Red Hat:serverless:1) | All versions | No fix listed |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9(Red Hat:serverless:1) | All versions | No fix listed |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9(Red Hat:serverless:1) | All versions | No fix listed |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9(Red Hat:serverless:1) | All versions | No fix listed |
| redhat/openshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9(Red Hat:serverless:1) | All versions | No fix listed |
| redhat/rhaiis/vllm-cuda-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaii/vllm-gaudi-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:amq_clients:2023) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:camel_quarkus:3) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:camel_spring_boot:4) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:apache_camel_hawtio:4) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:apicurio_registry:3) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:jboss_data_grid:8) | All versions | No fix listed |
| redhat/pki-core:10.6/resteasy(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/pki-deps:10.6/resteasy(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/resteasy(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/bazel7(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/bazel8(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/eap74-els-openjdk11-openshift-rhel8/eap74-els-openjdk11-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/eap74-els-openjdk17-openshift-rhel8/eap74-els-openjdk17-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/eap74-els-openjdk8-openshift-rhel8/eap74-els-openjdk8-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/jboss-eap-7-eap74-els-openjdk11-openshift-rhel8/jboss-eap-7-eap74-els-openjdk11-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/jboss-eap-7-eap74-els-openjdk17-openshift-rhel8/jboss-eap-7-eap74-els-openjdk17-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/jws5-jboss-logging(Red Hat:jboss_enterprise_web_server:5) | All versions | No fix listed |
| redhat/offline-knowledge-portal/rhokp-rhel9(Red Hat:offline_knowledge_portal:1) | All versions | No fix listed |
| redhat/rhoai/odh-modelmesh-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-spark-operator-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cpu-torch291-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-cuda130-torch291-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-th06-rocm64-torch291-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-gaudi-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/devspaces/openvsx-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/devspaces/pluginregistry-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:red_hat_single_sign_on:7) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:amq_streams:2) | All versions | No fix listed |
| redhat/log4j-api(Red Hat:amq_streams:3) | All versions | No fix listed |
| debian/apache-log4j2(Debian:12) | All versions | No fix listed |
| debian/apache-log4j2(Debian:12) | = 2.19.0-2 | No fix listed |
| debian/apache-log4j2(Debian:12) | = 2.26.1-1 | No fix listed |
| debian/apache-log4j2(Debian:13) | All versions | No fix listed |
| debian/apache-log4j2(Debian:13) | = 2.19.0-2 | No fix listed |
| debian/apache-log4j2(Debian:13) | = 2.26.1-1 | No fix listed |
| debian/apache-log4j2(Debian:14) | All versions | No fix listed |
| debian/apache-log4j2(Debian:14) | = 2.19.0-2 | No fix listed |
| debian/apache-log4j2(Debian:14) | = 2.26.1-1 | No fix listed |
| ubuntu/apache-log4j2(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/apache-log4j2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/apache-log4j2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/apache-log4j2(Ubuntu:26.10) | All versions | No fix listed |
| apache log4j | >= 2.13.1, < 2.25.5 | 2.25.5 |
| apache log4j | = 2.26.0 | No fix listed |
| apache log4j | = 3.0.0-alpha1 | No fix listed |
| apache log4j | = 3.0.0-alpha1_rc1 | No fix listed |
| apache log4j | = 3.0.0-alpha1_rc2 | No fix listed |
| apache log4j | = 3.0.0-beta1 | No fix listed |
| apache log4j | = 3.0.0-beta2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- github.com patch
- github.com patch
- github.com product
- github.com
- github.com
- logging.apache.org vendor-advisory
- logging.apache.org product related
- logging.apache.org vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2499304 issue-tracking
- www.cve.org
- github.com
- Debian Security Tracker CVE-2026-49844 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-43102 third-party-advisory