Vulnerability record · CVE-2010-4344 · published 14 December 2010
CVE-2010-4344: Exim SMTP heap buffer overflow enables remote code execution
Exim · Exim
Exim before 4.70 has a heap-based buffer overflow in string_vformat in string.c. A remote SMTP session that sends two MAIL commands plus a large message with crafted headers triggers improper rejection logging and memory corruption. It matters because the flaw is remotely reachable without authentication and can lead to arbitrary code execution on the mail server.
Description
Heap-based buffer overflow in the string_vformat function in string.c in Exim before 4.70 allows remote attackers to execute arbitrary code via an SMTP session that includes two MAIL commands in conjunction with a large message containing crafted headers, leading to improper rejection logging.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8, unauthenticated remote code execution, CISA KEV listing and high EPSS probability make this an urgent patching priority.
What it is
Exim before 4.70 has a heap-based buffer overflow in string_vformat in string.c. A remote SMTP session that sends two MAIL commands plus a large message with crafted headers triggers improper rejection logging and memory corruption. It matters because the flaw is remotely reachable without authentication and can lead to arbitrary code execution on the mail server.
Impact
An unauthenticated remote attacker can corrupt heap memory and potentially execute arbitrary code with the privileges of the Exim process, typically root on many deployments. This can lead to full compromise of the mail server.
Attack surface
Reached over the network via SMTP; the CVSS vector is AV:N/AC:L/PR:N/UI:N, so no authentication or user interaction is required. The attacker only needs to complete an SMTP session with two MAIL commands and a large crafted message.
Exploitation
CVE-2010-4344 is listed in CISA KEV with a 2022-03-25 addition date, and EPSS shows a 30-day probability of 0.71901 (99.396th percentile). References include an Exploit-tagged Exim lurker message, an Exploit-tagged Openwall post, and a Metasploit module, indicating public exploit tooling exists.
What to do
- Upgrade Exim to 4.70 or later, or apply the vendor patch referenced in the Exim bug and git commit.
- Apply distribution updates for Debian, Ubuntu, openSUSE and other affected packages per their advisories.
- Restrict SMTP access to trusted networks or hosts where feasible to reduce exposure.
- Monitor for and block exploit attempts targeting the two-MAIL-command pattern at the SMTP gateway.
- Verify the Exim version and patch level on all internet-facing mail servers.
Detection
- Inspect SMTP logs for sessions containing two MAIL commands followed by unusually large messages or malformed headers.
- Monitor Exim process crashes or abnormal termination and correlate with inbound SMTP sessions.
- Use network IDS signatures for the Exim string_vformat overflow pattern and known Metasploit module traffic.
- Alert on unexpected child processes or outbound connections originating from the Exim service account.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2010-4344 to the Known Exploited Vulnerabilities catalog on 25 March 2022 as "Exim Heap-Based Buffer Overflow Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 15 April 2022.
Affected products
4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2010-4344 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2010-4344), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.