# CVE-2026-40685

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-30 · Modified: 2026-05-01
- Aliases: UBUNTU-CVE-2026-40685, DEBIAN-CVE-2026-40685, CGA-2g6p-xqv4-6rwx, CGA-4jpx-chfw-3vqc, CGA-6cpq-jvmp-fp58, CGA-f3h9-7c59-hhwq, CGA-g74q-f2vm-gxf7, CGA-g9qg-jxvw-6388, CGA-gfcm-vv36-q65q, CGA-gv75-fq8h-vr8g, CGA-j3jr-4963-gxvx, CGA-j7m5-4gwc-4884, CGA-j7p8-5c5m-hr3f, CGA-jf42-wwhv-6xv5, CGA-jgwh-ppxh-fvfj, CGA-jwph-3v95-m5mm, CGA-m7h4-743h-87fx, CGA-pqc6-xvcw-q58h, CGA-qxw8-7gxx-gr4j, CGA-r74c-vv4p-4g3j, CGA-rv6j-66q9-j6rr, CGA-wr8j-phw4-rjf7, ALPINE-CVE-2026-40685
- Record: https://cvemate.com/vulnerability/CVE-2026-40685 · JSON: https://cvemate.com/vulnerability/CVE-2026-40685/json

## Description

```text
In Exim before 4.99.2, when JSON lookup is enabled, an out-of-bounds heap write can occur when a JSON operator encounters malformed JSON in an untrusted header, because of an incorrect implementation of \ skipping.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.334%, percentile 28.598%, 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 24)

- alpine exim (Alpine Linux): \< 4.98.2-r0
- chainguard exim (Chainguard): \< 4.99.5-r0
- chainguard exim-cdb (Chainguard): \< 4.99.5-r0
- chainguard exim-dbmdb (Chainguard): \< 4.99.5-r0
- chainguard exim-dnsdb (Chainguard): \< 4.99.5-r0
- chainguard exim-doc (Chainguard): \< 4.99.5-r0
- chainguard exim-mysql (Chainguard): \< 4.99.5-r0
- chainguard exim-pgsql (Chainguard): \< 4.99.5-r0
- chainguard exim-scripts (Chainguard): \< 4.99.5-r0
- chainguard exim-sqlite (Chainguard): \< 4.99.5-r0
- chainguard exim-utils (Chainguard): \< 4.99.5-r0
- wolfi exim (Wolfi): \< 4.99.5-r0
- wolfi exim-cdb (Wolfi): \< 4.99.5-r0
- wolfi exim-dbmdb (Wolfi): \< 4.99.5-r0
- wolfi exim-dnsdb (Wolfi): \< 4.99.5-r0
- wolfi exim-doc (Wolfi): \< 4.99.5-r0
- wolfi exim-mysql (Wolfi): \< 4.99.5-r0
- wolfi exim-pgsql (Wolfi): \< 4.99.5-r0
- wolfi exim-scripts (Wolfi): \< 4.99.5-r0
- wolfi exim-sqlite (Wolfi): \< 4.99.5-r0

## References

- <https://www.openwall.com/lists/oss-security/2026/04/30/21>
- <https://exim.org/static/doc/security/cve-2026-04.1/CVE2026-40685.assessment>
- <https://code.exim.org/exim/exim/commit/9fdc057e71b87c87a0d3d2288b2810a0efaaba57>
- <https://exim.org/static/doc/security/CVE-2026-40685.txt>
- <https://ubuntu.com/security/CVE-2026-40685>
- <https://www.cve.org/CVERecord?id=CVE-2026-40685>
- <https://lists.exim.org/lurker/message/20260429.121733.f58d9686.en.html>
- <https://ubuntu.com/security/notices/USN-8228-1>
- <https://ubuntu.com/security/notices/USN-8382-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-40685>
- <https://security.alpinelinux.org/vuln/CVE-2026-40685>

---

Data as of 2026-12-05T03:44:30.631Z. 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
