Skip to content
OpenAdvisories
Medium · 6.3 Public exploit CVE-2026-49844 EUVD-2026-43102GHSA-qv9r-c865-cp47

Apache Log4j API: Improper serialization of non-finite floating-point values in MapMessage.asJson()

Published Jul 10, 2026 · Updated Sep 17, 2026 · Assigned by apache

Vendor: Apache Software Foundation Product: Apache Log4j API Package: akhq Package: apache-activemq-artemis Package: apache-log4j2 Package: apache-log4j2 Package: apache-pulsar-4.2 Package: apache-tika-3.1 Package: apache-tika-3.2 Package: apache-tika-3.2-compat Package: celeborn-0.6 Package: druid Package: flink-2.1 Package: flink-2.2 Package: flink-2.2-compat Package: infinispan-16.1 Package: infinispan-16.2 Package: kafka-4.1 Package: keycloak-config-cli Package: keycloak-config-cli-iamguarded-compat Package: kserve-modelmesh Package: logstash-9.3 Package: logstash-9.3-iamguarded-compat Package: neo4j-2026.01 Package: neo4j-2026.05 Package: neo4j-2026.06 Package: neo4j-2026.07 Package: opensearch-2 Package: opensearch-3 Package: opensearch-3-discovery-ec2 Package: opensearch-3-iamguarded-compat Package: opensearch-3-neural-search Package: org.apache.logging.log4j:log4j-api Package: solr-10 Package: solr-10-iamguarded-compat Package: sonarqube Package: spark-4.0-scala-2.13 Package: spark-4.1-scala-2.13 Package: spdx-tools-java Package: strimzi-kafka-operator-cluster-operator Package: strimzi-kafka-operator-kafka-agent Package: strimzi-kafka-operator-kafka-init Package: strimzi-kafka-operator-kafka-thirdparty-libs-cc Package: strimzi-kafka-operator-topic-operator Package: strimzi-kafka-operator-tracing-agent Package: strimzi-kafka-operator-user-operator Package: thingsboard-tb-mqtt-transport Package: thingsboard-tb-node Package: trino Package: trino-plugin-bigquery Package: trino-plugin-opensearch Package: trino-plugin-oracle Package: wavefront-proxy Package: wildfly-openjdk-17 Package: wildfly-openjdk-21 Package: zipkin Ecosystem: Debian Ecosystem: Maven Ecosystem: Ubuntu Ecosystem: Wolfi

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Log4j API 2.13.1 – < 2.25.5, 2.26.0 – < 2.26.1, 3.0.0-alpha1 – ≤ 3.0.0-beta2 2.25.5

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache-log4j2 No fix yet —
Debian 13 apache-log4j2 No fix yet —
Debian 12 apache-log4j2 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 apache-log4j2 No fix yet —
Ubuntu 26.04 LTS apache-log4j2 No fix yet —
Ubuntu 24.04 LTS apache-log4j2 No fix yet —
Ubuntu 22.04 LTS apache-log4j2 No fix yet —
Ubuntu 20.04 LTS apache-log4j2 No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS apache-log4j2 No fix yet —
Ubuntu Pro 16.04 LTS apache-log4j2 No fix yet —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 log4j +2 2.17.2-1.amzn2023.0.6 ALAS2023-2026-2072

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling akhq 0.28.0-r6 —
Wolfi rolling apache-activemq-artemis 2.55.0-r3 —
Wolfi rolling apache-pulsar-4.2 4.2.4-r1 —
Wolfi rolling apache-tika-3.1 3.1.0-r37 —
Wolfi rolling apache-tika-3.2 3.2.3-r17 —
Wolfi rolling apache-tika-3.2-compat 3.2.3-r18 —
Wolfi rolling celeborn-0.6 0.6.3-r14 —
Wolfi rolling druid 37.0.0-r52 —
Wolfi rolling flink-2.1 2.1.3-r3 —
Wolfi rolling flink-2.2 2.2.1-r4 —
Wolfi rolling flink-2.2-compat 2.2.1-r5 —
Wolfi rolling infinispan-16.1 16.1.4-r10 —
Wolfi rolling infinispan-16.2 16.2.2-r2 —
Wolfi rolling kafka-4.1 4.1.2-r8 —
Wolfi rolling keycloak-config-cli +1 6.5.1-r13 —
Wolfi rolling kserve-modelmesh 0.12.0-r39 —
Wolfi rolling logstash-9.3 +3 No fix yet —
Wolfi rolling neo4j-2026.06 2026.06.0-r8 —
Wolfi rolling neo4j-2026.07 2026.07.1-r1 —
Wolfi rolling opensearch-2 2.19.6-r8 —
Wolfi rolling opensearch-3 3.8.0-r0 —
Wolfi rolling opensearch-3-discovery-ec2 +2 3.8.0-r3 —
Wolfi rolling solr-10 +1 10.0.0-r10 —
Wolfi rolling sonarqube 26.8.0.126808-r1 —
Wolfi rolling spark-4.0-scala-2.13 4.0.4-r2 —
Wolfi rolling spark-4.1-scala-2.13 4.1.3-r3 —
Wolfi rolling spdx-tools-java 2.0.7-r5 —
Wolfi rolling strimzi-kafka-operator-kafka-init +6 1.1.0-r7 —
Wolfi rolling thingsboard-tb-node +1 4.3.1.3-r20 —
Wolfi rolling trino +3 483-r7 —
Wolfi rolling wavefront-proxy 13.9-r26 —
Wolfi rolling wildfly-openjdk-17 +1 41.0.0-r3 —
Wolfi rolling zipkin 3.6.1-r20 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • xiaoqiMikko/log4j-check ★ 0 · Aug 7, 2026

    log4j 2025/2026 年 7 条「配置静默失效」CVE 自查:按 CVE×模块 判定 4 个模块,结构化解析 log4j2 配置做 applicability 降噪,并算出该升到哪个版本才一次到位(6 条写 2.25.4,但有一条要 2.25.5,而它 Dependabot 报不出来) CVE-2026-49844 / CVE-2026-34477

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.logging.log4j:log4j-api >= 2.13.1, < 2.25.5 2.25.5 GHSA-qv9r-c865-cp47
Maven org.apache.logging.log4j:log4j-api >= 2.26.0, < 2.26.1 2.26.1 GHSA-qv9r-c865-cp47

Advisories 13

References