CVE-2026-40685

CRITICAL CVSS 3.1: 9.8 EPSS 0.32%
Updated Jun 17, 2026
Exim
Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions before 4.99.2
Fixed In 4.99.2
Type CWE-684, CWE-787 (Out-of-bounds Write)
Vendor Exim
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Exim Exim
cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:*
— 4.99.2