Ettercap Memory Safety Vulnerabilities
2026-11-10
Use-after-free in Ettercap's PCRE2 filter substitution path can corrupt heap memory and potentially enable code execution in a process that normally runs as root. Ettercap through 0.8.4.1 is affected on PCRE2-enabled builds (the default on current distributions) when a filter containing a pcre_regex() substitution is loaded and Ettercap is not in unoffensive mode; a network-adjacent, unauthenticated attacker triggers it by sending any packet matching the pattern, with no user interaction. No CISA KEV listing or public exploit code was identified at time of analysis, and the vendor advisory states the trigger is deterministic once the required filter configuration is present.
Stack buffer underwrite in the Ettercap telnet dissector, affecting Ettercap through 0.8.4.1, lets an unauthenticated attacker on the adjacent network corrupt the stack of an Ettercap process that normally runs as root. A telnet stream (TCP 23) carrying more backspace characters than preceding characters walks the dissector's output pointer below its stack buffer, so attacker-supplied bytes are written at attacker-chosen negative offsets; the vendor advisory notes two client packets after the server banner suffice, because the saved dissector state carries the backspaces forward. There is no CISA KEV listing and no verified working exploit code, although the advisory publishes a minimal AddressSanitizer reproducer; the fix is only proposed upstream in PR #1330, and no released patched version has been confirmed, so interim risk management rests on controlling where the telnet dissector runs.
Stack buffer overflow in Ettercap 0.8.4.1 and earlier lets a WiFi-adjacent attacker corrupt the stack of the Ettercap process - which normally runs as root - by sending a single short CCMP frame, but only when Ettercap is sniffing 802.11 traffic in monitor mode with a valid WPA2/CCMP security association already loaded (key supplied via -W and the four-way handshake captured). Instances that are not in that non-default decryption configuration are not reachable on this path, which is why the assessed vector is adjacent-network with high attack complexity (CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). There is no CISA KEV listing and no confirmed working exploit code; a public GitHub advisory documents a validated reproducer built with AddressSanitizer, so remediation belongs in this week's planned maintenance rather than an emergency response.
Heap buffer overflow in Ettercap's Gadu-Gadu protocol dissector lets a network-adjacent, unauthenticated attacker corrupt the heap of a process that normally runs as root, by sending a crafted 32-bit version field in a GG_LOGIN50/60 or GG_STATUS50 message on TCP 8074 while Ettercap is actively sniffing that segment. gg_get_version() composes the version string with sprintf/strcat into a 30-byte heap buffer but can emit 44 bytes, giving up to a 14-byte overflow whose contents are only partially attacker-selected (the hex digits of the version value). Exploitation requires adjacency and an active sniffing state rather than internet reachability, and no public exploit was identified at time of analysis; the fix exists upstream as a commit and pull request but no tagged patched release is confirmed.
Heap out-of-bounds read in Ettercap through 0.8.4.1 can leak adjacent heap memory to an attacker-controlled TLS endpoint or crash the process when SSL interception is active. The flaw is in sslw_get_clienthello_sni(): a crafted ClientHello carries a 16-bit SNI length that is passed to strndup() without being bounded by the actual extension length, and the copied bytes become the upstream hostname. Builds compiled with HAVE_OPENSSL_1_1_1 and running SSL MITM are affected; no public exploit identified at time of analysis.
Heap out-of-bounds read in Ettercap through 0.8.4.1 (Parse_NTLM_Auth() in src/dissectors/ec_http.c) allows a peer whose HTTP traffic passes through an active Ettercap capture to disclose adjacent process heap memory to the operator's console and log file, or to crash the process when an attacker-chosen offset lands on an unmapped page. The trigger is a crafted Authorization: NTLM or Proxy-Authorization: NTLM Type 3 message: the base64 decode length is discarded, the struct is cast blindly, and the lmResponse/ntResponse/user offsets are used unchecked, producing reads of 24 bytes per response field and up to roughly 2 KB through GetUnicodeString(). No public exploit code has been identified at time of analysis, and the flaw is only reachable while an operator is running Ettercap with the HTTP dissector on a segment the attacker can reach (assessed AV:A/AC:L/PR:N/UI:N with high confidentiality and high availability impact).
Out-of-bounds read and size_t underflow in Ettercap through 0.8.4.1 allow an attacker-controlled or attacker-influenced HTTPS server to trigger out-of-bounds reads and a heap memcpy with an attacker-influenced near-SIZE_MAX length in the Ettercap process, which normally runs as root - resulting in a remote crash and memory corruption. The flaw is reachable only when an operator has deliberately enabled SSL MITM/sslstrip interception and only on the SSL_SERVER direction, so the victim client under interception must contact the malicious endpoint; this is an adjacent-network, unauthenticated condition (AV:A/PR:N) rather than a default remote exposure. Exploitation status: no public exploit code identified at time of analysis; no released patched version is confirmed, with the fix proposed upstream in PR 1330 and a this_week priority rather than an emergency.