# CVE-2026-34481: Apache Log4j JSON Template Layout: Improper serialization of non-finite floating-point values in JsonTemplateLayout

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-10 · Modified: 2026-07-11
- Aliases: UBUNTU-CVE-2026-34481, DEBIAN-CVE-2026-34481, CGA-28fm-p367-5pgw, CGA-29jr-86hv-r293, CGA-2ph8-m8rq-r96w, CGA-2q4g-9gmf-h725, CGA-34ch-rr3h-wf6j, CGA-34wp-rxp3-j3w5, CGA-426q-2r8p-jp24, CGA-444c-6jxr-f7vr, CGA-446h-6w6j-pp73, CGA-45q3-9863-m76c, CGA-474f-6rj6-cgpr, CGA-4jh8-qv78-j63w, CGA-52p5-j77f-948h, CGA-5g46-47gc-v693, CGA-5hjv-mjfr-hh9x, CGA-5jjg-v8w7-v688, CGA-68fv-56c2-m6r4, CGA-736w-g6r5-223g, CGA-75xw-g245-9fp2, CGA-8j97-5c6x-335p, CGA-8p5x-p534-6rmh, CGA-9287-jcvx-p8g4, CGA-9cqj-38wq-2rfc, CGA-9pmr-4p9c-g4g3, CGA-9qr8-7jfg-7c4h, CGA-9r8q-9938-x54h, CGA-c4j5-5mxm-m627, CGA-cqw2-wp3c-8mvw, CGA-f4x9-p8fx-hcmq, CGA-fmjp-pc7h-j5gv, CGA-fp4h-4vhr-pjcc, CGA-fvvj-3pch-xpcc, CGA-gcc4-5h23-qpwc, CGA-h2p9-x9pf-2vv4, CGA-h386-mc39-8848, CGA-h3wm-pq55-r95p, CGA-h96m-x6xj-hvrc, CGA-h9p3-4v5x-rvjc, CGA-hrpm-768v-qgg9, CGA-j2xj-cgc7-qcc9, CGA-jq6p-cqjr-5x9x, CGA-jr97-g2x5-q94v, CGA-jwc3-xjrw-5qfx, CGA-mggx-28h8-w5w3, CGA-mwcm-3q25-9jfh, CGA-mwqq-h79x-p44p, CGA-q28m-g77m-8667, CGA-qg79-6jrq-7cq8, CGA-qqvg-vgfr-gf63, CGA-qx44-5r3r-8fjw, CGA-r2g6-hmc5-c3v4, CGA-r6pm-rjrf-44mg, CGA-r87p-fqwc-36gj, CGA-rf62-gh4r-ccf6, CGA-rr94-g23c-vv5m, CGA-v63f-8425-438m, CGA-v6rr-v2r4-9mm8, CGA-vpf6-pmfj-g273, CGA-vv68-rrc5-vh26, CGA-w27p-fmf8-7vw6, CGA-w53w-xmpv-w35f, CGA-w5fg-8xv2-p89v, CGA-w9qw-6xc3-9hvr, CGA-wqv3-8h49-v2f6, CGA-x6h6-w4hw-5f4c, CGA-xcc7-qh66-rmhp, CGA-xv46-mvf3-9g3h, CGA-25mv-r7f3-c9rf, CGA-2rgr-rh3w-8vxp, CGA-4cp3-cr4h-qq5j, CGA-4g9g-4m4v-494v, CGA-4p49-p595-pvvw, CGA-55mf-vw6v-xgj2, CGA-5f4x-hp9x-jq26, CGA-5j7q-8hrj-jr93, CGA-5mf3-qgpp-83v9, CGA-6336-6h4w-2rfw, CGA-6348-w76p-j2qr, CGA-653q-mq52-4mfw, CGA-692v-m6rp-38jc, CGA-6xmf-jp9x-34mg, CGA-7hfg-3mc8-rvpv, CGA-7mmq-fr2v-frg4, CGA-7x6v-2rrx-2prj, CGA-7xrp-5mj9-rqxp, CGA-83gq-g5vv-fq8w, CGA-8q26-x99p-m6g5, CGA-8qj9-h585-9vqq, CGA-9c2r-8p4p-h7jj, CGA-9j3p-vx88-8crw, CGA-9m8q-2wgr-2fc6, CGA-cj67-f9g3-f8wr, CGA-cjfc-652v-gcp3, CGA-cm4m-46v9-g2x9, CGA-cw2x-m7mv-6ccx, CGA-f6wm-h74h-c6v7, CGA-fgh4-86v8-w3jg, CGA-fm4j-2pg4-vfwc, CGA-fm8j-x6cq-pmhv, CGA-fq86-8899-pv9w, CGA-fv99-mvjr-vx5h, CGA-fxxg-r3q6-v5mv, CGA-gx8r-38g2-gf26, CGA-h7xw-4x47-3x82, CGA-hmjp-xcvw-p9vc, CGA-j6fr-qpc8-qqfv, CGA-jg58-hv45-2x72, CGA-m2pr-9r37-g387, CGA-mfj8-f682-fv2p, CGA-mwvp-2mpm-p3f2, CGA-p6r4-35hc-pxc5, CGA-pcwh-hc96-3frf, GHSA-w35j-pv5h-q9q9, CGA-q9hj-x995-mjh7, CGA-qx6w-g5mh-pp44, CGA-r27j-m2g3-4fxg, CGA-r395-6234-mv4j, CGA-r4v3-6mr4-p87w, CGA-rvc2-f24r-pp8g, CGA-rxff-27vf-x8m4, CGA-v2vg-pmm4-v9cg, CGA-v5wx-6f53-5qwm, CGA-vwm2-p6h2-vwjw, CGA-w37q-43xh-qfjc
- Record: https://cvemate.com/vulnerability/CVE-2026-34481 · JSON: https://cvemate.com/vulnerability/CVE-2026-34481/json

## Description

```text
Apache Log4j's  JsonTemplateLayout https://logging.apache.org/log4j/2.x/manual/json-template-layout.html , in versions up to and including 2.25.3, produces invalid JSON output when log events contain non-finite floating-point values (NaN, Infinity, or -Infinity), which are prohibited by RFC 8259. This may cause downstream log processing systems to reject or fail to index affected records.

An attacker can exploit this issue only if both of the following conditions are met:

  *  The application uses JsonTemplateLayout.
  *  The application logs a MapMessage, or logs an object directly (e.g., via Logger.info(Object), which wraps it in an ObjectMessage), where the message contains an attacker-controlled floating-point value.


Users are advised to upgrade to Apache Log4j JSON Template Layout 2.25.4, which corrects this issue.

Note: The fix released in version 2.25.4 did not cover all affected code paths. CVE-2026-49844 was assigned to the remaining issue, which concerns the MapMessage.asJson() serialization in Apache Log4j API and is fixed in versions 2.25.5 and 2.26.1.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.717%, percentile 55.147%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 80)

- apache software foundation apache log4j json template layout: ≥ 2.14.0, \< 2.25.4 \| ≥ 3.0.0-alpha1, ≤ 3.0.0-beta3
- apache log4j: ≥ 2.14.0, \< 2.25.4 \| 3.0.0:alpha1 \| 3.0.0:alpha1\_rc1 \| 3.0.0:alpha1\_rc2 \| 3.0.0:beta1 \| 3.0.0:beta2 \| 3.0.0:beta3
- chainguard apache-camel-karavan-devmode (Chainguard): \< 4.14.2-r8
- chainguard apache-pulsar-4.0 (Chainguard): \< 4.0.9-r11
- chainguard apache-pulsar-4.1 (Chainguard): All versions (No fix recorded)
- chainguard apache-pulsar-4.2 (Chainguard): \< 4.2.1-r0
- chainguard apache-pulsar-fips-4.0 (Chainguard): \< 4.0.9-r11
- chainguard apache-pulsar-fips-4.1 (Chainguard): All versions (No fix recorded)
- chainguard apache-pulsar-fips-4.2 (Chainguard): \< 4.2.1-r0
- chainguard camunda-8.8 (Chainguard): \< 8.8.22-r0
- chainguard camunda-8.9 (Chainguard): \< 8.9.1-r0
- chainguard camunda-zeebe-8.8 (Chainguard): \< 8.8.22-r0
- chainguard camunda-zeebe-8.9 (Chainguard): \< 8.9.1-r0
- chainguard flink-2.1 (Chainguard): \< 2.1.1-r5
- chainguard flink-2.2 (Chainguard): \< 2.2.0-r5
- chainguard hadoop-fips-3.3.6 (Chainguard): All versions (No fix recorded)
- chainguard hadoop-fips-3.4.2 (Chainguard): All versions (No fix recorded)
- chainguard hadoop-fips-3.5 (Chainguard): \< 3.5.0-r12
- chainguard kafka\_exporter-strimzi-compat (Chainguard): \< 1.2.0-r5
- chainguard kafka-bridge (Chainguard): \< 1.0.0-r1

## References

- <https://github.com/apache/logging-log4j2/pull/4080>
- <https://logging.apache.org/security.html#CVE-2026-34481>
- <https://logging.apache.org/cyclonedx/vdr.xml>
- <https://logging.apache.org/log4j/2.x/manual/json-template-layout.html>
- <https://lists.apache.org/thread/n34zdv00gbkdbzt2rx9rf5mqz6lhopcv>
- <http://www.openwall.com/lists/oss-security/2026/04/10/10>
- <https://ubuntu.com/security/CVE-2026-34481>
- <https://www.cve.org/CVERecord?id=CVE-2026-34481>
- <https://security-tracker.debian.org/tracker/CVE-2026-34481>
- <https://repo.maven.apache.org/maven2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34481.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34481>
- <https://github.com/apache/logging-log4j2>

---

Data as of 2026-12-05T06:45:31.182Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
