CVE-2023-42118 in Libspf2 Project Libspf2 and 1 more product
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...
Affects 2 products from 2 vendors. Facts below cite their sources.
Exploitable from adjacent network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Libspf2 Project | Libspf2 | No version listed by the source |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Exim Exim
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-42118 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-344884-H |
| CVSS vector | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-05-03 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-191: CWE-191
Analysis AI-written, not human-reviewed
CVE-2023-42118 is a critical vulnerability in Exim libspf2 that allows network-adjacent attackers to execute arbitrary code due to an integer underflow in the parsing of SPF macros.
The vulnerability exists in the parsing of SPF macros where user-supplied data is not properly validated, leading to an integer underflow. This can be exploited by sending specially crafted SPF records to the affected Exim server.
Questions
What is CVE-2023-42118?
CVE-2023-42118 is a critical vulnerability in Exim libspf2 that allows network-adjacent attackers to execute arbitrary code due to an integer underflow in the parsing of SPF macros.
What is the CVSS score for CVE-2023-42118?
CVE-2023-42118 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.2%.
Is CVE-2023-42118 actively exploited?
No confirmed active exploitation of CVE-2023-42118 as of 2026-09-25.
How do I remediate CVE-2023-42118?
Priority: IMMEDIATE.
What systems are affected by CVE-2023-42118?
CVE-2023-42118 affects Libspf2 Project Libspf2.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Libspf2 Project","product":"Libspf2","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.