Skip to main content

Ettercap CVE-2026-125403

| EUVDEUVD-2026-120566 HIGH
Out-of-bounds Read (CWE-125)
2026-11-10 disclosure@vulncheck.com GHSA-74xr-8gm8-4rwv
7.2
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position on intercepted segment with SSL MITM active
  2. Delivery
    Serve malicious HTTPS response to intercepted client
  3. Exploit
    Truncate Strict-Transport-Security header before CRLF
  4. Execution
    Trigger OOB read and size_t underflow in sslw_remove_sts
  5. Impact
    Corrupt or crash root Ettercap process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires Ettercap to be actively performing SSL MITM / sslstrip interception (the vulnerable sslw_remove_sts() is reached only on the SSL_SERVER direction, src/ec_sslwrap.c:869-870), and a client it is intercepting must reach an attacker-controlled or attacker-influenced HTTPS server. The concrete server-side trigger is a response containing the bytes '\r\nStrict-Transport-Security:' with no following CRLF inside the same packet, which leaves the second memmem() scanning a stale over-long length and returning NULL. Limiting factors: this is not a default posture - an operator must have deliberately enabled SSL interception; the attacker must control the HTTPS endpoint the intercepted victim contacts; and the position is adjacent-network (AV:A), not arbitrary remote. No authentication or local access on the Ettercap host is needed (PR:N), and no per-attack user interaction beyond the pre-existing interception session.

Impact

Signals are moderately consistent and point to a real-but-bounded priority rather than an emergency. The CVSS 4.0 vector (AV:A/AC:L/AT:N/PR:N/UI:N) scores 7.2 (High) with VI:H/VA:H and VC:N, meaning integrity and availability impact (memory corruption and crash) but no confidentiality impact despite the underlying out-of-bounds read - the over-read data is consumed internally, not returned to the attacker. The vuln.today decision label is 'this_week', not act_now/emergency, which aligns with the absence of a CISA KEV listing and the lack of any provided EPSS score. No public working exploit is identified, though the GHSA-hq2w-pg4m-6w63 and VulnCheck advisories publish full root-cause and triggering detail, lowering the bar to weaponization. The key tempering factor is the threat model: AV:A (adjacent) plus the precondition that Ettercap be actively performing SSL MITM/sslstrip means the 'victim' is normally the operator running an interception tool, so this is an attacker-turns-the-tables scenario rather than broad internet-facing exposure. Net: a genuine root-process heap-corruption bug worth patching on a near-term schedule, but its real-world blast radius is constrained by the unusual deployment conditions, not a widespread drive-by risk.

Exploit ScenarioDerived

An operator runs Ettercap in SSL MITM/sslstrip mode, and a client it is intercepting connects to an attacker-controlled or attacker-influenced HTTPS server. The server returns a response containing a Strict-Transport-Security header truncated at the end of the segment (no following CRLF in the packet), so sslw_remove_sts() over-reads past the buffer and, on the NULL memmem result, issues a memcpy with a near-SIZE_MAX length, crashing or corrupting the Ettercap process that runs as root. No weaponized public exploit is known, but the advisory discloses the exact triggering condition and code path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

Out-of-bounds read and size_t underflow in Ettercap through 0.8.4.1 allow an attacker-controlled or attacker-influenced HTTPS server to trigger out-of-bounds reads and a heap memcpy with an attacker-influenced near-SIZE_MAX length in the Ettercap process, which normally runs as root - resulting in a remote crash and memory corruption. The flaw is reachable only when an operator has deliberately enabled SSL MITM/sslstrip interception and only on the SSL_SERVER direction, so the victim client under interception must contact the malicious endpoint; this is an adjacent-network, unauthenticated condition (AV:A/PR:N) rather than a default remote exposure. Exploitation status: no public exploit code identified at time of analysis; no released patched version is confirmed, with the fix proposed upstream in PR 1330 and a this_week priority rather than an emergency.

RemediationAI

No vendor-released patch for sslw_remove_sts() is identified at time of analysis (upstream fix available (PR/commit); released patched version not independently confirmed). The upstream remedy is proposed in https://github.com/Ettercap/ettercap/pull/1330 (branch security/dream-2026-hardening): after advancing ptr, recompute the remaining length (len = end - ptr), bound the second memmem() by that recomputed length, and bail out with -E_NOTFOUND when memmem() returns NULL before h_end is incremented - closing both the stale-length out-of-bounds read and the size_t underflow that feeds memcpy. Until a patched build is available, the effective mitigation is to disable SSL MITM/sslstrip interception in Ettercap, since sslw_remove_sts() is reached only when interception is active and only on the SSL_SERVER direction (src/ec_sslwrap.c:869-870); the trade-off is that SSL interception and header-stripping functionality is lost for the duration, but the vulnerable root-running code path is no longer exercised. The referenced commit 1d8badb713579419a29a494bb463a1af59707e98 should not be treated as a fix for this issue, because it changes src/dissectors/ec_gg.c for an unrelated advisory. Advisory: https://github.com/Ettercap/ettercap/security/advisories/GHSA-hq2w-pg4m-6w63.

Affected VersionsENISA

ettercap 0 ≤0.8.4.1

Affected Packages

euvd ettercap no fix

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

The vulnerability is in sslw_remove_sts() in src/ec_sslwrap.c (advisory cites lines 1294-1330), the routine Ettercap uses during SSL interception/sslstrip to strip Strict-Transport-Security headers from responses. The root cause class is CWE-125 (out-of-bounds read), compounded by CWE-191 (size_t underflow) and CWE-476 (NULL pointer dereference). Two distinct defects combine: (1) a stale length - len is computed as po->DATA.len before the search pointer is advanced, so after ptr += 2 the call memmem(ptr, len, "\r\n", 2) is permitted to scan len bytes from the new position, i.e. up to ptr - po->DATA.data bytes past the end of the packet buffer, producing an out-of-bounds read on every call and potentially returning a match located outside the buffer; and (2) an unchecked NULL - if no CRLF is found in the over-long window, memmem() returns NULL, h_end += 2 yields the pointer 0x2, header_length = h_end - ptr becomes a huge value, len - header_length underflows size_t, and the subsequent memcpy into a len-byte allocation is issued with a near-SIZE_MAX length. The reachable trigger is a server-side response body (the call at src/ec_sslwrap.c:869-870 executes sslw_remove_sts(po) only for direction == SSL_SERVER) containing the bytes '\r\nStrict-Transport-Security:' with no following CRLF inside the same packet, such as a header truncated at the end of the segment. Preconditions are SSL MITM/sslstrip being active and the victim client reaching an attacker-controlled or attacker-influenced HTTPS server. The advisory notes that the submission attributes the issue to a double-free, but the maintainers confirmed the out-of-bounds read, NULL dereference and size_t underflow feeding memcpy, and did not confirm a double-free; heap corruption is real regardless. Note that one referenced commit (1d8badb713579419a29a494bb463a1af59707e98) modifies src/dissectors/ec_gg.c for an unrelated buffer-sizing advisory (GHSA-vrjv-f8gv-2h35) and does not address sslw_remove_sts(); no CPE identifiers were supplied in the input data.

Know when the next one hits your stack

  • 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

Vendor (vulncheck) PRIMARY 7.2 HIGH
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Adjacent SSL-interception path (AV:A); simple truncated-header trigger (AC:L); malicious server needs no credentials on the host (PR:N); over-read data is not returned so C:N, while root-process heap corruption and crash give I:H/A:H.

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Ettercap through 0.8.4.1 contains an out-of-bounds read and size_t underflow vulnerability in sslw_remove_sts() in src/ec_sslwrap.c, caused by a stale length and an unchecked memmem() result when stripping Strict-Transport-Security headers. A malicious HTTPS server whose response passes through Ettercap's SSL interception can trigger out-of-bounds reads and memory corruption in the Ettercap process, which normally runs as root.

Technical POC Analysis

CWE-125 out-of-bounds read, compounded by CWE-191 sizet underflow and CWE-476 NULL dereference, in sslwremovests() in src/ecsslwrap.c (advisory cites lines 1294-1330).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity vulnerability in Ettercap (up to version 0.8.4.1), a tool used by security teams for man-in-the-middle testing, can be triggered when operators intentionally enable SSL interception. A malicious server contacted by a monitored client could crash Ettercap or cause memory corruption in a process typically running with root privileges, potentially leading to broader system compromise. While exploitation requires specific configurations and no public exploit exists, the root-level impact and potential for lateral movement make this a priority for teams using Ettercap in active assessments.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable SSL MITM/sslstrip interception unless operationally necessary; run Ettercap with least privilege (avoid root) where possible; restrict network access to trusted endpoints; monitor for unusual crashes or memory errors in Ettercap processes; apply upstream fix when available.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche MITM/pentest tool, run on demand, not production infrastructure
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy