Integer overflow in Exim Libspf2
CVE-2023-42118
Exim libspf2 Integer Underflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Exim libspf2. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the parsing of SPF macros. When parsing SPF macros, the process does not properly validate user-supplied data, which can result in an integer underflow before writing to memory. An attacker can leverage this vulnerability to execute code in the context of the service account.
. Was ZDI-CAN-17578.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.084, 95.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Exim Libspf2 — versions exim 4.96-RC0-14-24b8ed847-XX
- Libspf2 Project
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (krlabs/eximsmtp-vulnerabilities, zerodaygpt/Vulnerability-Management-Program-Implementation). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- ZDI-23-1472 (x_research-advisory, Third Party Advisory)
- www.openwall.com/lists/oss-security/2025/03/28/1 (Mailing List)