CVE-2023-42115: Exim EXTERNAL AUTH Out-of-Bounds Write Remote Code Execution
- Vendor
- Exim
CVE-2023-42115 is an out-of-bounds write vulnerability in Exim's SMTP service, specifically affecting handling of the SASL EXTERNAL authentication mechanism. Insufficient validation of attacker-controlled authentication data can cause a write past the end of a buffer. A remote unauthenticated attacker can exploit the flaw to execute arbitrary code in the context of the Exim service account. The vulnerability is also tracked as ZDI-23-1469 and Exim bug 2999.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthenticated remote code execution with the privileges of the Exim service account. This may enable compromise of the mail-transfer service, access to mail-processing data available to that account, modification of service behavior, and use of the affected host as a foothold for further intrusion. The reported CVSS v3.1 score is 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not feasible, disable the EXTERNAL authentication driver/mechanism unless it is operationally required. Restrict network access to the SMTP service to trusted clients and networks, minimizing remote interaction with affected Exim instances until remediation is complete.
Remediation
Patch, then assume compromise.
Upgrade Exim to a vendor-fixed release. Exim versions 4.96.1 and 4.97 include fixes for CVE-2023-42115; use the supported patched package supplied by the operating-system or hosting-platform vendor where applicable. Verify that the deployed Exim build incorporates the security fix, including in packaged cPanel or distribution-managed installations.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2023-42115 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2023-42115?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2023-42115, the earliest disclosed Sep 2, 2024.
- Is there a patch for CVE-2023-42115?
- Upgrade Exim to a vendor-fixed release. Exim versions 4.96.1 and 4.97 include fixes for CVE-2023-42115; use the supported patched package supplied by the operating-system or hosting-platform vendor where applicable.
- What products are affected by CVE-2023-42115?
- Exim.
- How severe is CVE-2023-42115?
- CVE-2023-42115 has a CVSS v3 score of 9.8 (Critical) and an EPSS score of 4.2% (92nd percentile) as of Oct 16, 2026.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.