Vulnerability DatabaseCVE-2026-125406

CVE-2026-125406: 
Linux Debian vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify hosts on the adjacent network segment running Ettercap version ≤ 0.8.4.1 that are actively dissecting telnet (TCP 23) traffic.
  2. Establish a monitored telnet session: Initiate or participate in a telnet session on TCP port 23 that Ettercap is intercepting and dissecting, so that client-side data is passed through the vulnerable telnet dissector.
  3. Trigger session state initialization: Send an initial printable character to the telnet server so that Ettercap's dissector saves the first character into s->data and transitions out of the \xe7\x7e sentinel state.
  4. Send backspace-heavy packet to corrupt session state: Send a client packet containing more backspace characters (\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.
  5. Trigger out-of-bounds write: Send a subsequent client packet with normal characters (e.g., "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.
  6. Achieve code execution (theoretical): With sufficient control over the number of backspaces and subsequent character values, an attacker could overwrite saved return addresses or other stack metadata to redirect execution, potentially achieving arbitrary code execution as root. (No full weaponized exploit has been publicly demonstrated.) (Ettercap Advisory, Ettercap Source)

Indicators of compromise

  • Network: Unusual telnet (TCP 23) client-side packets containing a high ratio of backspace characters (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.
  • Process: Unexpected child processes spawned by the Ettercap process (e.g., /bin/sh, /bin/bash, curl, wget, python) indicating possible post-exploitation activity; Ettercap process crashing or restarting unexpectedly.
  • Logs: Ettercap debug logs (-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.
  • File System: Unexpected files written to disk by the Ettercap process (e.g., new scripts, cron jobs, or SSH authorized keys) if exploitation progresses to code execution.

Mitigation and workarounds

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.

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

ettercap

Affected

sid

ettercap

Affected

trixie

ettercap

Affected

Ubuntu

Unknown

bionic (esm-apps)

ettercap

Unknown

devel

ettercap

Unknown

focal (esm-apps)

ettercap

Unknown

jammy

ettercap

Unknown

jammy (esm-apps)

ettercap

Unknown

noble

ettercap

Unknown

noble (esm-apps)

ettercap

Unknown

resolute

ettercap

Unknown

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134844HIGH7.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134843HIGH7.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134845HIGH7.4
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134847MEDIUM6.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026
CVE-2026-134846MEDIUM6.5
  • Linux Debian logoLinux Debian
  • libpgjava
NoNoNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management