CVE-2023-42118: Exim libspf2 Integer Underflow Remote Code Execution Vulnerability
Noroxi assessment
Priority: Monitor (action score 38/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 8.3% (FIRST EPSS); higher than 95% of all records.
- Someone on the same network segment can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: azl4 libspf2 1.2.11-19.20210922git4915c308.azl4 on Azure Linux 4.0 0:1.2.11-19.20210922git4915c308.azl4.
- Mentioned 2 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to azl4 libspf2 1.2.11-19.20210922git4915c308.azl4 on Azure Linux 4.0 0:1.2.11-19.20210922git4915c308.azl4 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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
- May 2, 2024
- Updated
- Jun 17, 2026
- EPSS
- 8.3% · 95th percentile
- CWE
- CWE-191
Report tools
Action score
38
Low priority for now.
- CVSS
- 35 / 40 · 8.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 3 / 30 · 8.3%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 8.8
- CNA · zdi
- 7.5
- 1.3 point gap
CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| exim | exim | cpe:2.3:a:exim:exim |
| libspf2 project | libspf2 | cpe:2.3:a:libspf2_project:libspf2 |
Using exim? Add it to your stack and be the first to know about CVEs like this one. (Email server)
Versions reported by the vendor
Affected version ranges reported by the assigning authority (zdi). Independent of NVD's CPE analysis and usually ahead of it.
Exim libspf2
- exim 4.96-RC0-14-24b8ed847-XXaffected
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- libspf2 project libspf2all versions
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.18 | libspf2 | before 1.2.11-r3 | 1.2.11-r3 |
| Debian:12 | libspf2 | from 0 | — |
Same product
exim: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-10149A flaw was found in Exim versions 4.87 to 4.91 (inclusive).KEV99Now
- CVE-2018-6789An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1.KEV94Now
- CVE-2010-4344Heap-based buffer overflow in the string_vformat function in string.c in Exim before 4.70 allows remote attackers to execute arbitrary code…KEV91Now
Published before and after this one in the same product
- ← EarlierCVE-2023-42116May 2, 2024 · Exim SMTP Challenge Stack-based Buffer Overflow Remote Code Execution Vulnerability40Plan
- ← EarlierCVE-2023-42117May 2, 2024 · Exim Improper Neutralization of Special Elements Remote Code Execution Vulnerability41Plan
- Later →CVE-2023-42119May 2, 2024 · Exim dnsdb Out-Of-Bounds Read Information Disclosure Vulnerability12Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| azl4 libspf2 1.2.11-19.20210922git4915c308.azl4 on Azure Linux 4.0 | 0:1.2.11-19.20210922git4915c308.azl4 · Release Notes | Microsoft (MSRC) |
| alpine:libspf2 | 1.2.11-r3 · Alpine:v3.18 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-24-0412 · May 3, 2024(Exim Güvenlik Zafiyeti)
- TR-23-0568 · Oct 2, 2023(Exim Güvenlik Güncellemesi Yayınladı)
Not on record for this CVE: patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone on the same network segment can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Adjacent
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-191 · Integer Underflow (Wrap or Wraparound)CVSS vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (1 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.