CVE-2026-125406

Ettercap before 0.8.5.1 Stack Buffer Underwrite via Telnet Dissector Backspace Handling

Published Nov 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Ettercap before 0.8.5.1 contains a stack buffer underwrite vulnerability in the telnet dissector in src/dissectors/ec_telnet.c that decrements the output pointer on backspace without a lower bound check. Attackers can send a telnet stream with more backspaces than preceding characters to write below the stack buffer, corrupting the stack of the Ettercap process that normally runs as root.

Analysis

AI-generated

Technical impact

This vulnerability allows a stack buffer underwrite in Ettercap's telnet dissector located in src/dissectors/ec_telnet.c due to incorrect handling of backspace characters. When an attacker sends a telnet stream containing more backspace characters than preceding input, the output pointer moves below the allocated buffer without a lower bound check, corrupting the stack of the Ettercap process. If the process runs with root privileges, this corruption may enable arbitrary code execution or privilege escalation.

Affected Systems

The flaw affects all releases of Ettercap prior to version 0.8.5.1, including 0.8.5 and earlier. The affected component is the telnet dissector (src/dissectors/ec_telnet.c). The product is the Ettercap network monitoring tool, which runs under root.

Risk and Exploitability

The CVSS base score is 8.7, indicating high severity, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score of less than 1% indicates a low but non‑zero likelihood of exploitation. Attackers can trigger the flaw by initiating a telnet session and sending a carefully crafted payload with excessive backspaces. The attacker must have network connectivity to the device running Ettercap. Because the fix is implemented in the source code, upgrading to a patched release or disabling the telnet dissector mitigates the risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ettercap to version 0.8.5.1 or later.
  • If an upgrade is not immediately possible, disable the telnet dissector or block telnet traffic from untrusted sources on the device running Ettercap.
  • Run Ettercap with the least privileges required for packet capture, avoiding execution as root whenever feasible.

Generated by OpenCVE AI on November 22, 2026 at 21:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Ettercap through 0.8.4.1 contains a stack buffer underwrite vulnerability in the telnet dissector in src/dissectors/ec_telnet.c that decrements the output pointer on backspace without a lower bound check. Attackers can send a telnet stream with more backspaces than preceding characters to write below the stack buffer, corrupting the stack of the Ettercap process that normally runs as root. Ettercap before 0.8.5.1 contains a stack buffer underwrite vulnerability in the telnet dissector in src/dissectors/ec_telnet.c that decrements the output pointer on backspace without a lower bound check. Attackers can send a telnet stream with more backspaces than preceding characters to write below the stack buffer, corrupting the stack of the Ettercap process that normally runs as root.
Title Ettercap through 0.8.4.1 Stack Buffer Underwrite via Telnet Dissector Backspace Handling Ettercap before 0.8.5.1 Stack Buffer Underwrite via Telnet Dissector Backspace Handling
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ettercap
Ettercap ettercap
Vendors & Products Ettercap
Ettercap ettercap
Type Values Removed Values Added
Description Ettercap through 0.8.4.1 contains a stack buffer underwrite vulnerability in the telnet dissector in src/dissectors/ec_telnet.c that decrements the output pointer on backspace without a lower bound check. Attackers can send a telnet stream with more backspaces than preceding characters to write below the stack buffer, corrupting the stack of the Ettercap process that normally runs as root.
Title Ettercap through 0.8.4.1 Stack Buffer Underwrite via Telnet Dissector Backspace Handling
First Time appeared Ettercap-project
Ettercap-project ettercap
Weaknesses CWE-124
CPEs cpe:2.3:a:ettercap-project:ettercap:*:*:*:*:*:*:*:*
Vendors & Products Ettercap-project
Ettercap-project ettercap
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-124

    Buffer Underwrite ('Buffer Underflow')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 20, 2026, 12:29 PM
Reserved
Nov 9, 2026, 10:03 PM
Status
Awaiting Analysis
Published
Nov 10, 2026, 12:17 AM
Modified
Nov 20, 2026, 1:18 PM