CVE-2023-42118

Exim libspf2 Integer Underflow Remote Code Execution Vulnerability

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.

Category

7.5
CVSS
Severity: High
CVSS 3.0 •
EPSS 1.87% Top 20%
Affected: Exim libspf2
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-42118?
CVE-2023-42118 has been scored as a high severity vulnerability.
How to fix CVE-2023-42118?
To fix CVE-2023-42118, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-42118 being actively exploited in the wild?
It is possible that CVE-2023-42118 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~2% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-42118?
CVE-2023-42118 affects Exim libspf2.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.