CVE-2023-42118
Exim vulnerability analysis and mitigation

Overview

Exim libspf2 contains an integer underflow vulnerability (CVE-2023-42118) discovered in the SPF macro parsing functionality. The vulnerability was reported to the vendor on June 17, 2022, and was publicly disclosed on September 27, 2023, as a zero-day vulnerability. The flaw affects the libspf2 library implementations used in Exim mail server installations (ZDI Advisory).

Technical details

The vulnerability stems from improper validation of user-supplied data during SPF macro parsing, which can result in an integer underflow condition before writing to memory. The vulnerability has been assigned a CVSS v3.0 base score of 7.5 (High), with the vector string AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. The flaw is classified as CWE-191 (Integer Underflow) (ZDI Advisory, Red Hat).

Impact

If successfully exploited, this vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Exim libspf2. The attack can be performed without requiring authentication, and the code execution occurs in the context of the service account (ZDI Advisory).

Mitigation and workarounds

Given the nature of the vulnerability, the primary mitigation strategy is to restrict interaction with the application. The potentially related integer overflow flaw has been fixed in libspf2 version 1.2.10-8, though it's unclear if this addresses CVE-2023-42118 specifically (ZDI Advisory, Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Exim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-42118HIGH8.8
  • EximExim
  • perl-Mail-SPF_XS-debuginfo
NoYesMay 03, 2024
CVE-2025-30232HIGH8.1
  • EximExim
  • exim4
NoYesMar 28, 2025
CVE-2025-26794HIGH7.5
  • EximExim
  • exim4
NoYesFeb 21, 2025
CVE-2024-39929MEDIUM5.4
  • EximExim
  • exim-greylist
NoYesJul 04, 2024
CVE-2023-42119LOW3.1
  • EximExim
  • eximstats-html
NoYesMay 03, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management