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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | apache-log4j2 | No fix yet | — |
| Debian 13 | apache-log4j2 | No fix yet | — |
| Debian 12 | apache-log4j2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | apache-log4j2 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | apache-log4j2 | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | log4j +2 | 2.17.2-1.amzn2023.0.6 | ALAS2023-2026-2072 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- WID-SEC-2026-4090 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- WID-SEC-2026-2292 Apache log4j und Log4cxx: Mehrere Schwachstellen ermöglichen Manipulation von Dateien BSI CERT-Bund (WID) · Nov 1, 2026
- NCSC-2026-0448 Kwetsbaarheden verholpen in Oracle Fusion Middleware NCSC-NL (Netherlands) · Oct 22, 2026
- WID-SEC-2026-4092 Oracle Commerce: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- WID-SEC-2026-4089 Oracle Construction and Engineering: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- WID-SEC-2026-4086 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- WID-SEC-2026-4078 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- WID-SEC-2026-4062 Oracle Utilities Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 20, 2026
- WID-SEC-2026-3403 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 24, 2026
- NCSC-2026-0377 Kwetsbaarheden verholpen in Oracle Enterprise Manager NCSC-NL (Netherlands) · Sep 16, 2026
- NCSC-2026-0375 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Sep 16, 2026
- WID-SEC-2026-3399 Oracle Enterprise Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 15, 2026
- ALAS2023-2026-2072 Moderate: log4j security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 31, 2026