← Vulnerability feed

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

CVE-2017-16944: Exim SMTP daemon BDAT handling causes infinite loop and stack exhaustion

Exim · Exim

The receive_msg function in receive.c in the Exim SMTP daemon mishandles BDAT commands because it fails to properly check for the '.' character that marks the end of content, leading to an infinite loop and stack exhaustion. Exim 4.88 and 4.89 are affected. Because Exim is a widely deployed mail transfer agent, a remote unauthenticated attacker can repeatedly crash or hang the daemon, disrupting mail service.

7.5 CVSS 3.0 High EPSS 63% · top 0.8% CWE-835 · CWE-835
7.5CVSS 3.0 base score, v2 5.0
63%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
18References, 2 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 cause a denial of service (infinite loop and stack exhaustion) via vectors involving BDAT commands and an improper check for a '.' character signifying the end of the content, related to the bdat_getc function.

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

Automated analysis

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

high priorityRemote unauthenticated availability-only denial of service with a high EPSS score and public exploit references, though not listed in KEV.

What it is

The receive_msg function in receive.c in the Exim SMTP daemon mishandles BDAT commands because it fails to properly check for the '.' character that marks the end of content, leading to an infinite loop and stack exhaustion. Exim 4.88 and 4.89 are affected. Because Exim is a widely deployed mail transfer agent, a remote unauthenticated attacker can repeatedly crash or hang the daemon, disrupting mail service.

Impact

An attacker gains a denial of service: the SMTP daemon enters an infinite loop and exhausts its stack, making the mail service unavailable. There is no evidence in the record of confidentiality or integrity impact, and the CVSS vector confirms availability-only impact.

Attack surface

Reachable remotely over the network through SMTP BDAT commands, with no authentication and no user interaction required, per the CVSS vector AV:N/AC:L/PR:N/UI:N. Any host exposing the Exim SMTP listener is a potential target.

Exploitation

The record is not listed in CISA KEV, but EPSS is high at 0.6332 (99.17th percentile), and references include an Exploit-tagged Exim bug report and an Exploit-DB entry, indicating public exploit material exists.

What to do

  • Upgrade Exim to a version later than 4.89 that contains the fix for the BDAT end-of-content handling.
  • Apply the vendor patch referenced in the Exim bug report and Debian DSA-4053 if upgrading immediately is not possible.
  • Restrict SMTP access to trusted networks or hosts where feasible to reduce exposure of the listener.
  • Monitor and rate-limit inbound SMTP connections to limit the impact of repeated BDAT abuse.

Detection

  • Monitor Exim process CPU and memory for sustained spikes or stack exhaustion correlated with SMTP sessions.
  • Inspect SMTP logs for BDAT command sequences, especially repeated or malformed BDAT chunks without proper end-of-content termination.
  • Alert on Exim daemon restarts, crashes, or unresponsive SMTP listeners that coincide with inbound BDAT traffic.
  • Use network monitoring to flag unusually long-lived SMTP sessions issuing BDAT commands.

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

Track CVE-2017-16944 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-16944), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.