CVE-2026-125400

Ettercap before 0.8.5.1 Use-After-Free via PCRE2 Filter Substitution

Published Nov 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Ettercap before 0.8.5.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.

Analysis

AI-generated

Technical impact

Ettercap versions prior to 0.8.5.1 contain a use‑after‑free flaw in the func_pcre() routine of src/ec_filter.c. After freeing match data, the routine still reads the freed PCRE2 ovector. A network‑adjacent attacker can send a packet that matches a loaded pcre_regex() substitution filter, causing memory corruption and potentially enabling execution of code with root privileges.

Affected Systems

The Ettercap network monitoring tool, all releases before 0.8.5.1, is vulnerable. Users running 0.8.4.1, 0.8.4.2, or any earlier version should verify their exact version and plan an upgrade.

Risk and Exploitability

The CVSS base score of 8.7 classifies this as a high‑severity vulnerability. The EPSS score of < 1% indicates a very low probability of exploitation at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. Attackers adjacent on the network can send crafted packets that trigger the use‑after‑free, and if memory corruption is achieved, arbitrary code execution as root becomes possible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ettcap to version 0.8.5.1 or later to obtain the fixed code.
  • If an immediate upgrade is not possible, disable or remove any PCRE2 substitution filters or pcre_regex() filters to prevent the use‑after‑free trigger.
  • Restrict network‑adjacent traffic by segmenting the network or applying firewall rules that block suspicious packet patterns targeting Ettercap.

Generated by OpenCVE AI on November 22, 2026 at 21:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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. Ettercap before 0.8.5.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.
Title Ettercap through 0.8.4.1 Use-After-Free via PCRE2 Filter Substitution Ettercap before 0.8.5.1 Use-After-Free via PCRE2 Filter Substitution
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ettercap
Ettercap ettercap
Vendors & Products Ettercap
Ettercap ettercap
Type Values Removed Values Added
Description 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.
Title Ettercap through 0.8.4.1 Use-After-Free via PCRE2 Filter Substitution
First Time appeared Ettercap-project
Ettercap-project ettercap
Weaknesses CWE-416
CPEs cpe:2.3:a:ettercap-project:ettercap:*:*:*:*:*:*:*:*
Vendors & Products Ettercap-project
Ettercap-project ettercap
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 20, 2026, 12:29 PM
Reserved
Nov 9, 2026, 10:03 PM
Status
Awaiting Analysis
Published
Nov 10, 2026, 12:17 AM
Modified
Nov 20, 2026, 1:18 PM