Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2023-42115: Exim EXTERNAL AUTH Out-of-Bounds Write Remote Code Execution

Published May 3, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3
EPSS4.2%92nd percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Exim
IdentifiersCVE-2023-42115CWE-787 · Out-of-bounds Write
Also known aszdi_23_1469

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
cve-2023-42115This repository provides a practical exploit for CVE-2023-42115, targeting Exim SMTP servers. It contains two main Python scripts: 'exploit.py' and 'generate_payload.py'. 'exploit.py' is the primary exploit script. It allows the user to scan a target for vulnerability or exploit it by sending a crafted SMTP command (MAIL FROM) containing a payload. The script connects to the target's SMTP service (default port 25) and checks for an Exim banner to determine vulnerability. In exploit mode, it reads a user-supplied payload file and injects it into the SMTP conversation, aiming to trigger the vulnerability and execute the payload on the target. 'generate_payload.py' is a helper script that interactively generates reverse shell payloads for Linux (bash+nc) or Windows (PowerShell). The user specifies the local IP and port for the reverse connection, and the script outputs a payload file suitable for use with 'exploit.py'. The repository also includes a README.md with detailed usage instructions and a requirements.txt listing Python dependencies. The exploit is operational, providing a working reverse shell payload and clear instructions for both payload generation and exploitation. The attack vector is network-based, requiring access to the target's SMTP service. The main fingerprintable endpoints are the target's IP and port, and the temporary file '/tmp/f' used in the Linux payload. The exploit is not part of a framework and is intended for direct use by penetration testers or researchers.kirinse · Disclosed Sep 2, 2024 · python · networkOperationalCVE-2023-42115Small standalone C++ proof-of-concept exploit for CVE-2023-42115 targeting Exim over SMTP. The repository contains one code file (main.cpp) and a README with build and usage instructions. The program implements a minimal TCP client using POSIX sockets, connects to a user-supplied SMTP server, reads the banner, verifies that it contains 'Exim', sends 'EHLO anon', and then sends a crafted MAIL FROM command containing a shell payload. The payload invokes 'sh -i' and redirects the shell over /dev/udp to an attacker-specified IP and UDP port, effectively attempting unauthenticated remote code execution with a reverse shell. No advanced exploitation framework, target discovery, or payload customization beyond callback host/port is present.doaso · Disclosed Apr 8, 2026 · cpp · markdown · networkOperational
Exposure surface

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.

VendorProductType
EximEximapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.