Ettercap: Stack buffer underwrite in telnet dissector (CVE-2026-125406)
Ettercap versions through 0.8.4.1 are vulnerable to a stack buffer underwrite in the telnet dissector, which could allow an unauthenticated attacker to corrupt memory and potentially execute arbitrary code with root privileges.
CVE search metadata
CVE search record: CVE-2026-125406. Severity: high. CVSS: 8.8. KEV: no. Product: Ettercap (<= 0.8.4.1). Brief: Ettercap: Stack buffer underwrite in telnet dissector (CVE-2026-125406). Brief link: https://feed.craftedsignal.io/briefs/2026-11-ettercap-stack-buffer-underwrite/
Triage facts
Revision 1- Applicability
- Ettercap (<= 0.8.4.1)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 10, 02:05 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Ettercap versions through 0.8.4.1 contain a stack buffer underwrite vulnerability in the telnet dissector located in 'src/dissectors/ec_telnet.c'. The vulnerability exists because the software fails to perform a lower bound check when decrementing the output pointer in response to a backspace character. An attacker providing a malicious telnet stream containing more backspaces than preceding characters can write data below the intended stack buffer.
Impact
Successful exploitation allows for memory corruption within the Ettercap process. As Ettercap is frequently executed with root privileges, this vulnerability poses a high risk of arbitrary code execution or denial of service through process crashes.
Recommendation
- Audit infrastructure to identify and inventory all instances of Ettercap 0.8.4.1 or earlier.
- Prioritize the isolation of systems running Ettercap in untrusted network environments until a patched version is available.
- Implement network-level inspection to identify anomalous telnet traffic patterns (excessive backspace characters) directed at systems running Ettercap.
Immediate actions
Inventory systems running Ettercap version 0.8.4.1 or earlier
Threat Hunt
Identify systems listening on TCP port 23 (Telnet) where Ettercap is identified as the listening process
Data: Host-based process-to-port mapping logs (e.g., netstat, lsof, or EDR process telemetry)
Mitigations
Disable or restrict access to Ettercap instances running on exposed network interfaces
CVE-2026-125406