← Vulnerability feed

Vulnerability record · CVE-2017-16943 · published 25 November 2017

CVE-2017-16943: Exim SMTP daemon use-after-free via BDAT commands

Exim · Exim

The receive_msg function in receive.c in the Exim SMTP daemon mishandles BDAT commands, leading to a use-after-free in Exim 4.88 and 4.89. A remote, unauthenticated attacker can trigger memory corruption that may result in arbitrary code execution or a denial of service.

9.8 CVSS 3.0 Critical EPSS 47% · top 1.2% CWE-416 · Use after free
9.8CVSS 3.0 base score, v2 7.5
47%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
22References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via vectors involving BDAT commands.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network reachability, no authentication, high EPSS, and public exploit references make this a top remediation priority despite absence from KEV.

What it is

The receive_msg function in receive.c in the Exim SMTP daemon mishandles BDAT commands, leading to a use-after-free in Exim 4.88 and 4.89. A remote, unauthenticated attacker can trigger memory corruption that may result in arbitrary code execution or a denial of service.

Impact

Successful exploitation can give an attacker code execution in the context of the Exim process, or crash the daemon to disrupt mail service. The CVSS vector rates confidentiality, integrity and availability impact as high.

Attack surface

Reachable over the network through the SMTP service by sending crafted BDAT commands; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).

Exploitation

Not listed in CISA KEV, but EPSS is high at roughly 0.467 (98.8th percentile), and references include an Exim bug tracker entry and a public PoC mirror tagged as exploit.

What to do

  • Upgrade Exim to a version containing the fixes referenced by the Exim git commits (4.88 and 4.89 are the affected versions named).
  • Apply the vendor patch or distribution update (for example Debian DSA-4053) where upgrading is not immediately possible.
  • Restrict SMTP access to trusted networks or hosts where feasible to reduce exposure of the daemon.
  • Monitor Exim for crashes or abnormal process termination and treat repeated failures as a possible exploitation attempt.

Detection

  • Review Exim logs for malformed or unusual BDAT command sequences and abrupt connection handling.
  • Alert on Exim process crashes or restarts correlated with inbound SMTP sessions.
  • Hunt for known public PoC traffic patterns against the SMTP port on internet-facing mail servers.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://openwall.com/lists/oss-security/2017/11/25/1 Mailing List
http://openwall.com/lists/oss-security/2017/11/25/2 Mailing List
http://openwall.com/lists/oss-security/2017/11/25/3 Mailing List
http://www.openwall.com/lists/oss-security/2021/05/04/7
http://www.securitytracker.com/id/1039872 Third Party AdvisoryVDB Entry
https://bugs.exim.org/show_bug.cgi?id=2199 ExploitIssue Tracking
https://git.exim.org/exim.git/commit/4090d62a4b25782129cc1643596dc2f6e8f63bde Patch
https://git.exim.org/exim.git/commitdiff/4e6ae6235c68de243b1c2419027472d7659aa2b4 Patch
https://github.com/LetUsFsck/PoC-Exploit-Mirror/tree/master/CVE-2017-16944 Exploit
https://lists.exim.org/lurker/message/20171125.034842.d1d75cac.en.html Mailing List
https://www.debian.org/security/2017/dsa-4053 Third Party Advisory
http://openwall.com/lists/oss-security/2017/11/25/1 Mailing List
http://openwall.com/lists/oss-security/2017/11/25/2 Mailing List
http://openwall.com/lists/oss-security/2017/11/25/3 Mailing List
http://www.openwall.com/lists/oss-security/2021/05/04/7
http://www.securitytracker.com/id/1039872 Third Party AdvisoryVDB Entry
https://bugs.exim.org/show_bug.cgi?id=2199 ExploitIssue Tracking
https://git.exim.org/exim.git/commit/4090d62a4b25782129cc1643596dc2f6e8f63bde Patch
https://git.exim.org/exim.git/commitdiff/4e6ae6235c68de243b1c2419027472d7659aa2b4 Patch
https://github.com/LetUsFsck/PoC-Exploit-Mirror/tree/master/CVE-2017-16944 Exploit
https://lists.exim.org/lurker/message/20171125.034842.d1d75cac.en.html Mailing List
https://www.debian.org/security/2017/dsa-4053 Third Party Advisory

Track CVE-2017-16943 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.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2017-16943), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.