Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain adjacent-network position
-
DeliveryEttercap dissects telnet stream (TCP 23)
-
ExploitSend backspaces exceeding preceding characters
-
ExecutionWrite pointer underflows below stack VLA
-
PersistCorrupt root process stack with chosen bytes
-
ImpactPotential code execution or crash as root
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer boundary checks
|
| Exploitation Conditions | Exploitation requires that a victim is actively running Ettercap (as root) with the telnet dissector processing a telnet stream on TCP 23, and that the attacker occupies an adjacent-network position (AV:A) where that stream is dissected. No authentication or user interaction is needed (PR:N/UI:N). The concrete trigger is a telnet stream containing more backspace characters (\b or 0x7f) than preceding characters; the advisory notes just two client packets after the server banner suffice, because the saved dissector state retains the backspaces across packets. The principal limiting factors are the operator-driven, non-persistent exposure (Ettercap must be live and dissecting telnet at the moment of attack) and the adjacent-network constraint, both of which sharply reduce realistic opportunity compared with a remotely reachable service. |
| Impact | The signals are moderately but not uniformly severe. The supplied CVSS 4.0 vector (AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, 8.7) describes an adjacent-network, low-complexity, unauthenticated flaw with high impact to the vulnerable system - consistent with the described stack buffer underwrite (CWE-124) that writes attacker-chosen bytes at attacker-chosen negative offsets in a process running as root. The vuln.today decision label is 'this_week', not 'act_now' or 'emergency', which argues for prompt but not crisis handling. No KEV entry and no EPSS score are provided, so there is no evidence of active exploitation or a modeled exploitation probability; absence of these is not proof of safety but means widespread opportunistic attack is unconfirmed. A public PoC reference exists (the GHSA advisory includes an AddressSanitizer-confirmed reproducer loop), but it is not verified as a packaged working exploit and PoC availability must not be conflated with active exploitation. The key limiter is exposure: unlike a server flaw, this is only reachable while an operator is actively running ettercap and dissecting a telnet (TCP 23) stream from an adjacent network position, which materially narrows the real-world attack surface. Net: a genuine high-severity memory-corruption bug worth patching this week, but its practical risk is bounded by the niche, operator-driven deployment model rather than being an internet-facing emergency. |
| Exploit ScenarioDerived | While ettercap is running as root and dissecting network traffic, an attacker on the adjacent segment sends a telnet stream (TCP 23) containing more backspace bytes (\b / 0x7f) than preceding characters. The dissector decrements its write pointer below the stack VLA with no lower-bound check, writing attacker-chosen bytes below the buffer and corrupting the stack of the root process; a public AddressSanitizer-confirmed PoC reproducer exists but is not verified as a weaponized exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
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.
RemediationAI
No vendor-released patched version is identified at time of analysis; the correction exists only as an upstream proposal in pull request https://github.com/Ettercap/ettercap/pull/1330 (branch security/dream-2026-hardening) and commit https://github.com/Ettercap/ettercap/commit/1d8badb713579419a29a494bb463a1af59707e98, so upstream fix is available as a PR/commit and a released patched version is not independently confirmed. The code change required is small and can be carried locally: guard the decrement with a lower-bound test (if (p > str) p--;) and NUL-terminate the buffer at the resulting position before it is saved, so backspaces are not propagated into s->data across packets. Because exploitation depends entirely on Ettercap being live and dissecting a telnet session on an untrusted adjacent segment, the practical interim control is to stop the telnet dissector from processing TCP 23 traffic on untrusted networks (disable the telnet dissector or restrict capture to trusted segments), accepting the loss of telnet session and credential visibility that the dissector provides; running the process with reduced privileges lowers the impact of a successful underwrite on a root-owned process but can break raw-socket capture, and it does not remove the memory corruption itself. Track the GHSA (https://github.com/Ettercap/ettercap/security/advisories/GHSA-w5ch-7c4x-crcc) and PR #1330 for the merged fix and any tagged release before restoring telnet dissection on exposed segments.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Ettercap is a man-in-the-middle and network dissection framework; its protocol dissectors receive reassembled stream data and render printable session output. In src/dissectors/ec_telnet.c the dissector builds a variable-length array on the stack sized from strlen(s->data) + PACKET->DATA.disp_len + 2, then performs telnet line-editing emulation: a loop walks the buffer and, on encountering 0x08 or 0x7f, decrements the output pointer p without any lower-bound comparison, otherwise copying the character forward into *p. That is a classic buffer underwrite (CWE-124, with the advisory also classifying it as CWE-786/CWE-787): once p drops below the base of the VLA, both the copy and the trailing NUL termination write before the buffer, and the depth grows with the number of backspaces supplied. The first saved character is screened by an isprint() check at line 127, but the cleansing loop never revisits positions it does not reach, so s->data = strdup(str) persists the raw backspaces into saved state; on the next packet the state itself begins with backspaces, which lets each additional one push the write further below the buffer. The trigger is purely a data-shaping condition in the dissected stream and does not depend on any version-specific configuration, but it does require Ettercap to be live and actively dissecting that telnet session at the moment of attack. Note that the fix commit referenced in the advisory (1d8badb, hardening branch) also reworks other dissectors; the diff excerpt available here covers src/dissectors/ec_gg.c and a separate advisory (GHSA-vrjv-f8gv-2h35), not the telnet hunk itself.
Know when Ettercap gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Adjacent attacker whose telnet traffic ettercap dissects, no auth or interaction and a simple backspace trigger (AV:A/AC:L/PR:N/UI:N); attacker-controlled stack writes in a root process yield high C/I/A with no scope change.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Technical POC Analysis
Buffer underwrite (buffer underflow) - CWE-124; the GitHub advisory itself files it under CWE-786 (access before start of buffer) and CWE-787 (out-of-bounds write).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-125406 is a high-severity vulnerability in Ettercap, a network analysis tool often deployed by security teams. An unauthenticated attacker on the same network segment can exploit it to corrupt the Ettercap process, potentially leading to remote code execution with root privileges. This puts organizations that use Ettercap for network monitoring at risk of full system compromise, though exploitation requires adjacent network access and no active exploitation has been observed.
No vendor patch is available. Interim mitigations include: network segmentation to limit adjacent network access to Ettercap hosts; running Ettercap with reduced privileges (non-root) via containerization or user namespaces; disabling the telnet dissector if telnet analysis is not required; and monitoring for abnormal backspace sequences in telnet traffic.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Ettercap Memory Safety Vulnerabilities
View all 7Heap-based buffer overflow in the dissector_postgresql function in dissectors/ec_postgresql.c in Ettercap before 0.8.1 a
The strescape function in ec_strings.c in Ettercap 0.8.2 allows remote attackers to cause a denial of service (heap-base
The compile_tree function in ef_compiler.c in the Etterfilter utility in Ettercap 0.8.2 and earlier allows remote attack
Stack-based buffer overflow in the scan_load_hosts function in ec_scan.c in Ettercap 0.7.5.1 and earlier might allow loc
Integer underflow in Ettercap 0.8.1 allows remote attackers to cause a denial of service (out-of-bounds write) and possi
The dissector_postgresql function in dissectors/ec_postgresql.c in Ettercap before 0.8.1 allows remote attackers to caus
The radius_get_attribute function in dissectors/ec_radius.c in Ettercap 0.8.1 performs an incorrect cast, which allows r
Heap-based buffer overflow in the nbns_spoof function in plug-ins/nbns_spoof/nbns_spoof.c in Ettercap 0.8.1 allows remot
Ettercap 0.8.1 does not validate certain return values, which allows remote attackers to cause a denial of service (cras
Heap out-of-bounds read in Ettercap's SOCKS5 dissector through version 0.8.5.1 can expose adjacent heap memory in the op
Heap out-of-bounds read in Ettercap through 0.8.5.1 lets network-adjacent attackers leak up to 100 bytes of process memo
EUVD-2026-120569
GHSA-cq94-w9q3-ggxw
NVD
CVE.org
EPSS
VulDB
Exploit-DB