CVE-2023-42118Exim libspf2 Integer Underflow Remote Code Execution Vulnerability
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.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | exim4 | Fix pending | UBUNTU-CVE-2023-42118 | |
| Ubuntu 26.10 | libspf2 | Fix pending | UBUNTU-CVE-2023-42118 | |
| Ubuntu 26.04 | exim4 | Under investigation | UBUNTU-CVE-2023-42118 | |
| Ubuntu 26.04 | libspf2 | Under investigation | UBUNTU-CVE-2023-42118 | |
| Ubuntu 25.10 | exim4 | Will not fix no security patches available, see ZDI's timeline ZDI claims this is Exim's issue, Exim claims this is libspf2's as of 2024-10-22, still not enough details… | UBUNTU-CVE-2023-42118 | |
| Ubuntu 25.10 | libspf2 | Will not fix no security patches available, see ZDI's timeline ZDI claims this is Exim's issue, Exim claims this is libspf2's as of 2024-10-22, still not enough details… | UBUNTU-CVE-2023-42118 | |
| Ubuntu 24.04 | exim4 | Under investigation | UBUNTU-CVE-2023-42118 | |
| Ubuntu 24.04 | libspf2 | Under investigation | UBUNTU-CVE-2023-42118 | |
| Ubuntu 22.04 | exim4 | Under investigation | UBUNTU-CVE-2023-42118 | |
| Ubuntu 22.04 | libspf2 | Under investigation | UBUNTU-CVE-2023-42118 | |
| Ubuntu 20.04 | exim4 | Fix pending | UBUNTU-CVE-2023-42118 | |
| Ubuntu 20.04 | libspf2 | Will not fix no security patches available, see ZDI's timeline ZDI claims this is Exim's issue, Exim claims this is libspf2's as of 2024-10-22, still not enough details… | UBUNTU-CVE-2023-42118 | |
| Ubuntu 18.04 | exim4 | Fix pending | UBUNTU-CVE-2023-42118 | |
| Ubuntu 18.04 | libspf2 | Fix pending | UBUNTU-CVE-2023-42118 | |
| Ubuntu 16.04 | exim4 | Will not fix no security patches available, see ZDI's timeline ZDI claims this is Exim's issue, Exim claims this is libspf2's as of 2024-10-22, still not enough details… | UBUNTU-CVE-2023-42118 | |
| Ubuntu 16.04 | libspf2 | Will not fix no security patches available, see ZDI's timeline ZDI claims this is Exim's issue, Exim claims this is libspf2's as of 2024-10-22, still not enough details… | UBUNTU-CVE-2023-42118 | |
| Ubuntu 14.04 | exim4 | Fix pending | UBUNTU-CVE-2023-42118 | |
| Ubuntu 14.04 | libspf2 | Will not fix no security patches available, see ZDI's timeline ZDI claims this is Exim's issue, Exim claims this is libspf2's as of 2024-10-22, still not enough details… | ||
| Debian 14 | libspf2 | Fix pending | DEBIAN-CVE-2023-42118 | |
| Debian 13 | libspf2 | Fix pending | DEBIAN-CVE-2023-42118 | |
| Debian 12 | libspf2 | Fix pending | DEBIAN-CVE-2023-42118 | |
| Alpine Linux 3.24 | libspf2 | Fixed | 1.2.11-r3 | ALPINE-CVE-2023-42118 |
| Alpine Linux 3.23 | libspf2 | Fixed | 1.2.11-r3 | ALPINE-CVE-2023-42118 |
| Alpine Linux 3.22 | libspf2 | Fixed | 1.2.11-r3 | ALPINE-CVE-2023-42118 |
| Alpine Linux 3.21 | libspf2 | Fixed | 1.2.11-r3 | ALPINE-CVE-2023-42118 |
| Alpine Linux 3.20 | libspf2 | Fixed | 1.2.11-r3 | ALPINE-CVE-2023-42118 |
| Alpine Linux 3.19 | libspf2 | Fixed | 1.2.11-r3 | ALPINE-CVE-2023-42118 |
| Alpine Linux 3.18 | libspf2 | Fixed | 1.2.11-r3 | ALPINE-CVE-2023-42118 |
What the vendor says
As published in the CVE record by zdi, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Exim libspf2: affected: exim 4.96-RC0-14-24b8ed847-XX
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.