
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-125406 is a stack buffer underwrite (buffer underflow) vulnerability in Ettercap's telnet dissector (src/dissectors/ec_telnet.c) that allows an adjacent network attacker to corrupt the stack of the Ettercap process, which typically runs as root. All versions through 0.8.4.1 are affected; the issue was discovered by the DREAM Security Research Team and reported against commit 3548c10c. The advisory was published on November 6, 2026, with the CVE assigned and published on November 10, 2026. It carries a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 8.7 (High) (Ettercap Advisory, Github Advisory).
The root cause is a missing lower-bound check on a write pointer during backspace character processing in the telnet dissector, classified as CWE-124 (Buffer Underwrite / Buffer Underflow). In src/dissectors/ec_telnet.c at lines 141–160, a variable-length array (VLA) str is allocated on the stack, and a pointer p is initialized to str. For each backspace character (\b or 0x7f) encountered, p is decremented without ever checking p > str, allowing it to fall below the start of the VLA. Subsequent character writes (*p = str[i]) and the trailing NUL termination (*p = '\0') then occur at attacker-controlled negative offsets from the stack buffer. Critically, the isprint() guard at line 127 only protects the very first saved character; after one round trip, the session state (s->data) stores the backspace-containing string, so each subsequent packet pushes the write pointer further below the buffer. As few as two client packets after the server banner are sufficient to trigger the overflow (Ettercap Advisory, Ettercap Source).
Successful exploitation gives an unauthenticated attacker on an adjacent network a stack write primitive — attacker-chosen bytes written to attacker-chosen negative offsets from a stack buffer — within the Ettercap process, which normally runs as root. This can lead to full compromise of the host running Ettercap, including arbitrary code execution with root privileges, complete loss of confidentiality, integrity, and availability of the affected system. Because Ettercap is a network interception tool often deployed on sensitive network segments, compromise of the Ettercap host could also expose captured credentials and network traffic from monitored sessions (Ettercap Advisory, Github Advisory).
A proof-of-concept crash reproducer is publicly available in the Ettercap security advisory (GHSA-w5ch-7c4x-crcc), demonstrating an AddressSanitizer-confirmed dynamic-stack-buffer-overflow with the input sequence prev="a\b\b", pkt="XXXX". The PoC demonstrates a memory-safety crash and a stack write primitive but does not include a full weaponized exploit or shell payload. No in-the-wild exploitation has been observed as of the time of publication. The EPSS score is approximately 0.24% (15th percentile), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. NVD SSVC assessment rates exploitation as "none" at this time (Ettercap Advisory, Github Advisory).
s->data and transitions out of the \xe7\x7e sentinel state.\b / 0x7f) than preceding characters (e.g., "a\b\b"). Ettercap's dissector stores the resulting string — including the excess backspaces — back into s->data via strdup(), bypassing the isprint() guard."XXXX"). The dissector concatenates the saved backspace-containing state with the new data, then processes backspaces in the loop at lines 150–159, decrementing pointer p below the VLA str on the stack. Each subsequent character write (*p = str[i]) and the trailing NUL (*p = '\0') corrupt stack memory at attacker-controlled negative offsets.0x08 / 0x7f) relative to printable characters, particularly sequences where backspaces outnumber preceding characters; repeated short telnet packets from the same source following a server banner./bin/sh, /bin/bash, curl, wget, python) indicating possible post-exploitation activity; Ettercap process crashing or restarting unexpectedly.-D mode) showing dissector_telnet - FIRST CHAR followed by abnormal session state entries; system logs (e.g., /var/log/syslog, /var/log/messages) recording segmentation faults or abnormal termination of the Ettercap process.Ettercap maintainers released version 0.8.5.1 (and initially 0.8.5, later corrected) on November 10, 2026, which includes the fix from pull request #1330 — bounding the backspace decrement with a p > str check before each p-- operation, and ensuring backspaces are not carried forward into s->data (Ettercap PR #1330, Ettercap Commit). Users should upgrade to Ettercap 0.8.5.1 immediately. As interim mitigations: restrict network access to Ettercap instances to trusted networks only; run Ettercap with the minimum required privileges rather than as root where possible; and consider disabling the telnet dissector if telnet traffic monitoring is not required.
The vulnerability was discovered and reported by the DREAM Security Research Team (Adiel Sol, Arad Inbar, Erez Cohen, Nir Somech, Ben Grinberg, Daniel Lubel, and Shir Sadon) against Ettercap v0.8.4.1, and was part of a broader report covering seven memory-safety bugs in Ettercap (Ettercap PR #1330). Ettercap maintainer eaescob acknowledged the report positively, merging the fix and releasing a patched version within the same day as public disclosure; fellow maintainer koeppea commented "This is massive. Kudos.... also to the research team." The NixOS/nixpkgs community responded quickly, opening and closing multiple issues to track patching of all seven vulnerabilities, and the maintainer there noted the rapid turnaround on the release.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."