CVE-2023-42118
JSON

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 packageVersionsReported by
Exim libspf2exim 4.96-RC0-14-24b8ed847-XX, before *CVE List
libspf2_project libspf2Not specifiedNVD

All scores

zdi7.5high CVSS:3.0CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-191

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

Sources

SourceRecordLicence
CVE ListCVE-2023-42118 changed 2025-03-28CVE Terms of Use
NVDCVE-2023-42118 changed 2026-06-17Public domain