Skip to main content

Ettercap CVE-2026-131854

| EUVDEUVD-2026-128326 HIGH
Out-of-bounds Read (CWE-125)
2026-11-18 disclosure@vulncheck.com GHSA-h9q6-v35j-v4fx
7.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Gain adjacent-network position near Ettercap sniffer
  2. Delivery
    Send truncated MySQL greeting or login packet
  3. Exploit
    Trigger unchecked memcpy past packet end
  4. Execution
    Over-read adjacent heap bytes
  5. Impact
    Leak hex-encoded heap memory to operator log

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

Requires that Ettercap be actively monitoring MySQL traffic on TCP 3306 with the MySQL dissector enabled (enabled by default) AND that the attacker occupy an adjacent-network position on that monitored traffic (AV:A), either as a malicious MySQL server (sink 1: crafted banner with inconsistent header length, e.g. DATA.len=20 with ptr[0]=16 and version '5.0') or as a malicious MySQL client (sink 2: crafted login packet, e.g. DATA.len=40). No authentication or user interaction is needed (PR:N/UI:N). Limiting factors: the attacker cannot reach an arbitrary remote Ettercap instance over routed networks - exploitation depends on the operator already capturing the attacker's MySQL traffic - and impact is confined to a bounded read (~30 bytes per banner, ~19 bytes per login) with no write and no code execution.

Impact

This is a bounded heap out-of-bounds read (CWE-125) in Ettercap's MySQL dissector, and the signals converge on a moderate, non-urgent priority. The input CVSS 4.0 vector (AV:A/AC:L/PR:N/UI:N, VC:H, VI:N/VA:N) correctly captures a confidentiality-only impact with no integrity or availability effect and no code execution ('No write' per the advisory). The attack vector is Adjacent (AV:A), not Network - the attacker must be a malicious MySQL server or client on traffic that an Ettercap operator is already sniffing, which meaningfully constrains real-world reach versus a true remote-internet-facing flaw. No KEV listing and no EPSS score are provided, and the input Decision label is 'this_week' rather than act_now/emergency, consistent with a patch-this-cycle rather than drop-everything posture. No standalone public exploit is listed; however the maintainers dynamically confirmed both sinks with an AddressSanitizer build on 0.8.5.1 (832524f3), so the defect is verified and reproducible even though weaponized exploit code is not cataloged here. The practical ceiling on damage is low: each trigger leaks only ~30 bytes (server banner) or ~19 bytes (client login) of adjacent heap, hex-encoded into the UI/log - though the advisory warns those bytes can contain packet contents or credentials recovered by other dissectors. Net: a real, confirmed bug worth patching promptly, but the adjacent vector, bounded leak size, and absence of KEV/high-EPSS keep it below critical urgency. Note the VC:H rating in the input arguably overstates a small, bounded leak - I assess confidentiality as Low.

Exploit ScenarioDerived

An attacker on the same network segment where an Ettercap operator is sniffing MySQL traffic (TCP 3306) stands up a malicious MySQL server, or acts as a malicious client, and sends a truncated greeting (banner) or login packet. The unchecked memcpy in dissector_mysql() reads past the end of the heap packet buffer, and Ettercap hex-encodes the over-read bytes into its seed/credential output, printing adjacent heap memory to the operator's console and log. No standalone public exploit is cataloged, but the maintainers reproduced both sinks with an AddressSanitizer build.

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

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

Alert me

AnalysisAIv1 – Nov 18, 2026

Heap out-of-bounds read in Ettercap's MySQL dissector allows an adjacent-network malicious MySQL server or client to leak bounded chunks of adjacent heap memory - up to roughly 30 bytes from a crafted server banner and about 19 bytes from a crafted login packet - into the operator's console and logs as hex-encoded seed and credential fields. All Ettercap releases through 0.8.5.1 are affected when the MySQL dissector is enabled (the default) while monitoring TCP 3306, and exploitation is unauthenticated with no user interaction. The vendor has released a fix in 0.8.5.2; no CISA KEV entry or public exploit code was identified at the time of analysis, and the independent assessment rates this as a moderate, non-urgent confidentiality-only issue because the read is bounded and yields no write or code execution.

RemediationAI

Upgrade to Ettercap 0.8.5.2 or later; the vendor-released patch is 0.8.5.2, and the underlying change is upstream commit 56101d9ebae0179a53fea6778759ed60c970dbed, which adds end - ptr bounds checks before each seed memcpy and before the client-side ptr += 36, strdup and 20-byte memcpy. Advisory details and the fix reference are at https://github.com/Ettercap/ettercap/security/advisories/GHSA-r2hv-j478-3cfg and https://www.vulncheck.com/advisories/ettercap-through-0.8.5.1-heap-out-of-bounds-read-via-mysql-dissector. If the upgrade cannot be applied immediately, the exposure is tied to the documented precondition that Ettercap is actively dissecting MySQL traffic on TCP 3306, so disabling the MySQL dissector - or not monitoring MySQL segments that carry untrusted server or client traffic - removes the trigger at the cost of losing MySQL seed and credential parsing; because exploitation also requires the operator to already be capturing the attacker's MySQL traffic, restricting captures to trusted MySQL endpoints is consistent with the assessed adjacent-network precondition. No vendor workaround beyond the patch was stated in the available sources.

Affected VersionsENISA

ettercap 0 ≤0.8.5.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 flaw is a CWE-125 heap out-of-bounds read in src/dissectors/ec_mysql.c. Ettercap's packet_disp_data() allocates the display buffer with SAFE_CALLOC(len + 1) and copies exactly len bytes, so a memcpy that runs past end - ptr reads beyond the allocation rather than into other captured data. In the server-banner branch, the v5 gate checks only the header length and protocol version, then runs ptr += 5; length = strlen(ptr); ptr += (length + 1 + 4); memcpy(seed, ptr, 8); ptr += (8 + 1 + 2 + 1 + 2 + 13); memcpy(seed + 8, ptr, 12); with no remaining-length validation. In the client branch, ptr += 36, strdup(ptr), and a strlen(user)+1+1 advance occur unguarded, and only ptr < end is checked before memcpy(input, ptr, 20), so ptr + 20 <= end is never verified. The maintainers reproduced both sinks with an AddressSanitizer build on stock 0.8.5.1 - a DATA.len = 20 banner with ptr[0] = 16 and version "5.0" (READ of size 12) and a valid banner followed by a DATA.len = 40 login (READ of size 20) - and the out-of-bounds bytes are hex-encoded into the seed/credential fields printed via DISSECT_MSG (USER: %s PASS: %s) and the $mysqlna$ JtR line. Upstream commit 56101d9ebae0179a53fea6778759ed60c970dbed adds end - ptr checks before both seed copies, before the client-side ptr += 36 / strdup sequence, and before the 20-byte memcpy, following the same pattern already used in ec_ldap.c, ec_dhcp.c and ec_postgresql.c.

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.1 HIGH
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.3 MEDIUM

Adjacent sniffed traffic gives AV:A; no auth or interaction (PR:N/UI:N); bounded ~30-byte heap over-read with no write yields C:L, I:N, A:N.

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/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
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Ettercap through 0.8.5.1 contains a heap out-of-bounds read vulnerability in dissector_mysql() in src/dissectors/ec_mysql.c that copies seed and password bytes without bounds checks. A malicious MySQL server or client can send truncated greeting or login packets to leak adjacent heap memory through hex-encoded output in the interface and log.

Technical POC Analysis

CWE-125 heap out-of-bounds read in dissectormysql() in src/dissectors/ecmysql.c (Ettercap through 0.8.5.1, cited commit 832524f3).

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 heap out-of-bounds read in Ettercap's MySQL dissector (CVE-2026-131854) allows a malicious MySQL server or client on an adjacent network to leak small, bounded portions of heap memory into Ettercap's console and logs. Security operations and network monitoring teams that rely on Ettercap to inspect MySQL traffic on TCP 3306 are the primary users exposed, and the leaked memory could contain sensitive data. However, the impact is limited to confidentiality, with no write or code execution, and no active exploitation has been observed.

Business Impact: Medium
Compensating Controls

Vendor-released patch: 0.8.5.2

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche open-source MITM/sniffing security tool, not broad production deployment
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.3%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Controlled
Automatable
No
Human Impact
Medium
Technical Impact
Partial

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.

Related Vulnerabilities in Ettercap Dissector Out-of-Bounds Read Flaws

View all 3

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