# CVE-2026-40685: 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…

- Severity: Medium 6.5 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-04-30T00:00:00.000Z
- Modified: 2026-11-11T21:10:00.200Z
- Weaknesses: CWE-684, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Exim Exim: before 4.99.2

## Every score

- mitre: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.openwall.com/lists/oss-security/2026/04/30/21> (mailing-list, third-party-advisory)
- <https://exim.org/static/doc/security/cve-2026-04.1/CVE2026-40685.assessment> (vendor-advisory)
- <https://code.exim.org/exim/exim/commit/9fdc057e71b87c87a0d3d2288b2810a0efaaba57> (patch)
- <https://exim.org/static/doc/security/CVE-2026-40685.txt> (broken-link)

## Sources

- CVE List: [CVE-2026-40685](https://www.cve.org/CVERecord?id=CVE-2026-40685), CVE Terms of Use, modified 2026-05-01
- NVD: [CVE-2026-40685](https://nvd.nist.gov/vuln/detail/CVE-2026-40685), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-40685 · Whole record: https://cve.day/CVE-2026-40685.json · Rebuilt by cve.day 2026-11-25T22:59:20.312Z
