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 an untrusted header, because of an incorrect implementation of \ skipping.
Configurations

Configuration 1 (hide)

cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:*

History

01 May 2026, 17:51

Type Values Removed Values Added
References () https://code.exim.org/exim/exim/commit/9fdc057e71b87c87a0d3d2288b2810a0efaaba57 - () https://code.exim.org/exim/exim/commit/9fdc057e71b87c87a0d3d2288b2810a0efaaba57 - Patch
References () https://exim.org/static/doc/security/CVE-2026-40685.txt - () https://exim.org/static/doc/security/CVE-2026-40685.txt - Broken Link
References () https://exim.org/static/doc/security/cve-2026-04.1/CVE2026-40685.assessment - () https://exim.org/static/doc/security/cve-2026-04.1/CVE2026-40685.assessment - Vendor Advisory
References () https://www.openwall.com/lists/oss-security/2026/04/30/21 - () https://www.openwall.com/lists/oss-security/2026/04/30/21 - Mailing List, Third Party Advisory
CPE cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:*
CWE CWE-787
First Time Exim
Exim exim

01 May 2026, 02:16

Type Values Removed Values Added
References
  • {'url': 'https://exim.org/static/doc/security/CVE-2025-40685.txt', 'source': 'cve@mitre.org'}
  • () https://exim.org/static/doc/security/CVE-2026-40685.txt -

30 Apr 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-30 22:16

Updated : 2026-05-01 17:51


NVD link : CVE-2026-40685

Mitre link : CVE-2026-40685

CVE.ORG link : CVE-2026-40685


JSON object : View

Products Affected

exim

  • exim
CWE
CWE-684

Incorrect Provision of Specified Functionality

CWE-787

Out-of-bounds Write