CVEfocus › CVE database › CVE-2023-42118

CVE-2023-42118Exim libspf2 Integer Underflow Remote Code Execution Vulnerability

CVSS 7.5 HighEPSS 1.2% (higher than 68% of CVEs)Published 2024-05-03Updated 2025-03-28Assigner: zdi

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.

CWE-191

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

7Fixed
9Fix pending
6Under investigation
6Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10exim4Fix pendingUBUNTU-CVE-2023-42118
Ubuntu 26.10libspf2Fix pendingUBUNTU-CVE-2023-42118
Ubuntu 26.04exim4Under investigationUBUNTU-CVE-2023-42118
Ubuntu 26.04libspf2Under investigationUBUNTU-CVE-2023-42118
Ubuntu 25.10exim4Will 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.10libspf2Will 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.04exim4Under investigationUBUNTU-CVE-2023-42118
Ubuntu 24.04libspf2Under investigationUBUNTU-CVE-2023-42118
Ubuntu 22.04exim4Under investigationUBUNTU-CVE-2023-42118
Ubuntu 22.04libspf2Under investigationUBUNTU-CVE-2023-42118
Ubuntu 20.04exim4Fix pendingUBUNTU-CVE-2023-42118
Ubuntu 20.04libspf2Will 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.04exim4Fix pendingUBUNTU-CVE-2023-42118
Ubuntu 18.04libspf2Fix pendingUBUNTU-CVE-2023-42118
Ubuntu 16.04exim4Will 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.04libspf2Will 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.04exim4Fix pendingUBUNTU-CVE-2023-42118
Ubuntu 14.04libspf2Will 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 14libspf2Fix pendingDEBIAN-CVE-2023-42118
Debian 13libspf2Fix pendingDEBIAN-CVE-2023-42118
Debian 12libspf2Fix pendingDEBIAN-CVE-2023-42118
Alpine Linux 3.24libspf2Fixed1.2.11-r3ALPINE-CVE-2023-42118
Alpine Linux 3.23libspf2Fixed1.2.11-r3ALPINE-CVE-2023-42118
Alpine Linux 3.22libspf2Fixed1.2.11-r3ALPINE-CVE-2023-42118
Alpine Linux 3.21libspf2Fixed1.2.11-r3ALPINE-CVE-2023-42118
Alpine Linux 3.20libspf2Fixed1.2.11-r3ALPINE-CVE-2023-42118
Alpine Linux 3.19libspf2Fixed1.2.11-r3ALPINE-CVE-2023-42118
Alpine Linux 3.18libspf2Fixed1.2.11-r3ALPINE-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.

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.