CVE-2023-42118

Name
CVE-2023-42118
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
x_research-advisory https://www.zerodayinitiative.com/advisories/ZDI-23-1472/
af854a3a-2127-422b-91ae-364da2661108 http://www.openwall.com/lists/oss-security/2025/03/28/1

Match rules

CPE URI Source package Min version Max version
libspf2 == exim 4.96-RC0-14-24b8ed847-XX == exim 4.96-RC0-14-24b8ed847-XX

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
libspf2 edge-main 1.2.11-r3 Natanael Copa <ncopa@alpinelinux.org> fixed
libspf2 3.18-main 1.2.11-r3 Natanael Copa <ncopa@alpinelinux.org> fixed
libspf2 3.19-main 1.2.11-r3 Natanael Copa <ncopa@alpinelinux.org> fixed
libspf2 3.20-main 1.2.11-r3 Natanael Copa <ncopa@alpinelinux.org> fixed
libspf2 3.21-main 1.2.11-r3 Natanael Copa <ncopa@alpinelinux.org> fixed