7.5high
Exim libspf2 Integer Underflow Remote Code Execution Vulnerability
- Severity
- 7.5high CVSS:3.0 by zdi
- Exploit likelihood
- 8.35% (higher than 95% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- zdi
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Exim libspf2 | exim 4.96-RC0-14-24b8ed847-XX, before * | CVE List |
| libspf2_project libspf2 | Not specified | NVD |
All scores
| zdi | 7.5high CVSS:3.0 | CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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 (es)
Vulnerabilidad de ejecución remota de código de desbordamiento de enteros Exim libspf2. Esta vulnerabilidad permite a atacantes adyacentes a la red ejecutar código arbitrario en instalaciones afectadas de Exim libspf2. No se requiere autenticación para aprovechar esta vulnerabilidad. La falla específica existe en el análisis de las macros SPF. Al analizar macros SPF, el proceso no valida adecuadamente los datos proporcionados por el usuario, lo que puede provocar un desbordamiento insuficiente de enteros antes de escribir en la memoria. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto de la cuenta de servicio. Era ZDI-CAN-17578.
References
| https://www.zerodayinitiative.com/advisories/ZDI-23-1472/ | third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2025/03/28/1 | mailing-list | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-42118 changed 2025-03-28 | CVE Terms of Use |
| NVD | CVE-2023-42118 changed 2026-06-17 | Public domain |