Skip to main content

Ettercap EUVDEUVD-2026-120563

| CVE-2026-125400 HIGH
Use After Free (CWE-416)
2026-11-10 disclosure@vulncheck.com GHSA-hf6q-wchc-457m
8.7
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Gain adjacent LAN position
  2. Delivery
    Send packet matching pcre_regex substitution filter
  3. Exploit
    Trigger use-after-free of PCRE2 match data in func_pcre
  4. Execution
    Reuse freed ovector to drive allocation and memcpy
  5. Impact
    Corrupt heap and execute code as root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Requires the victim to be running Ettercap with a loaded filter that contains a pcre_regex() substitution op (a replacement string), and NOT running in unoffensive mode, on a PCRE2-enabled build (HAVE_PCRE2, the default on current distributions since the pcre3->pcre2 migration in PR #1170; the pcre1 path uses a stack ovector and is unaffected). Given that configuration the advisory states the bug triggers deterministically from any packet matching the pattern, with no authentication (PR:N) and no user interaction (UI:N). Limiting factors: the attacker must be network-adjacent on the same L2 segment (AV:A, not routable/internet-remote), and the specific substitution filter must be loaded - this is not Ettercap's default state.

Impact

Impact is severe but exposure is gated. The 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, unauthenticated, no-interaction flaw with full confidentiality/integrity/availability loss in a process that runs as root - a high technical impact. Priority/SSVC-style signals are mixed: the vuln.today Decision label is 'this_week' (not act_now/emergency), and no EPSS score or CISA KEV entry is present in the input, so there is no evidence of active or automatable mass exploitation. Exploitation status: no public exploit identified at time of analysis (the GHSA advisory documents the memory-corruption primitive at line level but is not working exploit code). The decisive limiter, confirmed by the vendor advisory, is configuration: the victim must be running Ettercap with a loaded filter containing a pcre_regex() substitution and not in unoffensive mode, on a PCRE2 build. That makes this a targeted, config-dependent risk rather than a broadly exploitable internet-facing bug. Net: a genuine high-impact issue for the subset of operators running substitution filters, but constrained to the local LAN segment and a non-default runtime configuration.

Exploit ScenarioDerived

An attacker positioned on the same Layer 2 segment as a host running Ettercap with a pcre_regex() substitution filter sends a packet that matches the filter pattern. func_pcre() frees the PCRE2 match data and then reads the ovector from that freed block, letting attacker-influenced heap contents drive allocation sizes and memcpy offsets into the packet buffer, corrupting memory in a process running as root. No public exploit is identified; the vendor GHSA advisory details the primitive but does not provide working exploit code.

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

Use-after-free in Ettercap's PCRE2 filter substitution path can corrupt heap memory and potentially enable code execution in a process that normally runs as root. Ettercap through 0.8.4.1 is affected on PCRE2-enabled builds (the default on current distributions) when a filter containing a pcre_regex() substitution is loaded and Ettercap is not in unoffensive mode; a network-adjacent, unauthenticated attacker triggers it by sending any packet matching the pattern, with no user interaction. No CISA KEV listing or public exploit code was identified at time of analysis, and the vendor advisory states the trigger is deterministic once the required filter configuration is present.

RemediationAI

No vendor-released patched version was identified at time of analysis; package data marks Ettercap <= 0.8.4.1 as vulnerable and 'not yet patched,' while the advisory says a fix is proposed in PR #1330 (branch security/dream-2026-hardening) by moving pcre2_match_data_free() after the last ovec use and freeing match_data on early returns in both level 5 and level 6. Until a release ships, avoid running Ettercap with filters that contain pcre_regex() substitution ops; if such filters are required, run Ettercap in unoffensive mode, which the advisory lists as a precondition for exploitation, with the trade-off that unoffensive mode disables active packet injection and attack functionality. Since the attack requires network adjacency on the same L2 segment, restrict which hosts can send packets to the Ettercap host. A build using the legacy PCRE1 path is described as unaffected, but PCRE1 is legacy and current distributions default to PCRE2, so this is a build-level workaround with maintenance trade-offs rather than a substitute for the patch. Advisory: https://github.com/Ettercap/ettercap/security/advisories/GHSA-f3j5-rhhr-85j5; PR: https://github.com/Ettercap/ettercap/pull/1330.

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

Ettercap's src/ec_filter.c implements filter operations, including pcre_regex() substitution using PCRE2. In the level 5 branch of func_pcre(), the code creates match_data with pcre2_match_data_create_from_pattern(), frees it at src/ec_filter.c:593, then calls pcre2_get_ovector_pointer(match_data) at line 625, which reads freed memory (CWE-416). The following SAFE_CALLOC can reuse the freed block, so later ovec reads can be attacker-influenced and are used for the allocation size of the 'replaced' buffer, source indices into po->DATA.data, destination offsets and lengths for two memcpy calls into the pcap packet buffer, and the po->DATA.len delta; the BUG_IF snaplen guard is computed from the corrupted delta and does not reliably contain the write. HAVE_PCRE2 is selected when pcre2 is present (cmake/Modules/EttercapLibCheck.cmake:269-273), which is the default on current distributions since the pcre3-to-pcre2 migration in PR #1170; the pcre1 path uses a stack ovec and is unaffected. The same branch leaks match_data on the -E_NOTFOUND early return, and level 6 leaks it whenever the match fails. The supplied CVSS 4.0 score is 8.7 (AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H), and the independent CVSS 3.1 assessment is also 8.7 (AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). Note that the commit shown in the source evidence (1d8badb713579419a29a494bb463a1af59707e98) modifies src/dissectors/ec_gg.c under GHSA-vrjv-f8gv-2h35 and does not touch func_pcre(); the proposed fix for this CVE is PR #1330.

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 8.7 HIGH
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
vuln.today AI 8.8 HIGH

Adjacent because Ettercap processes sniffed LAN traffic (AV:A); deterministic trigger needing no attacker auth or interaction (AC:L/PR:N/UI:N); heap corruption in a root process yields full C/I/A impact, scope unchanged.

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/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
High
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 a use-after-free vulnerability in func_pcre() in src/ec_filter.c that reads the PCRE2 ovector after freeing match data. Network-adjacent attackers can send packets matching a loaded pcre_regex() substitution filter to corrupt memory and potentially execute code as root.

Technical POC Analysis

CWE-416 (use-after-free) in funcpcre() in src/ecfilter.c (Ettercap).

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

Ettercap, a widely used network security tool, contains a high-severity use-after-free vulnerability that can lead to code execution with root privileges. Any organization using Ettercap in offensive mode with PCRE2-enabled filters is at risk of compromise by a network-adjacent attacker, potentially resulting in full system takeover. Leadership should prioritize remediation because this flaw affects a tool often deployed by security teams, and exploitation could undermine both security operations and overall network integrity.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include running Ettercap in unoffensive mode, disabling PCRE2 support, avoiding pcre_regex() substitutions, restricting network access to Ettercap hosts, and monitoring for anomalous activity.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
popular LAN MITM/pentest tool, rarely a persistent production service
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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.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
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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