Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain adjacent LAN position
-
DeliverySend packet matching pcre_regex substitution filter
-
ExploitTrigger use-after-free of PCRE2 match data in func_pcre
-
ExecutionReuse freed ovector to drive allocation and memcpy
-
ImpactCorrupt 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-120563
GHSA-hf6q-wchc-457m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB