Ettercap before 0.8.5.1 Use-After-Free via PCRE2 Filter Substitution
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 9, 2026
- Updated
- Nov 20, 2026
- Reserved
- Nov 9, 2026
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.
| Product | Versions |
|---|---|
| ettercap Ettercap | before 0.8.5.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 8.8 High | VulnCheck |
Weaknesses
- CWE-416 Use After Free
References
- GitHub Security Advisory (GHSA-f3j5-rhhr-85j5)Vendor Advisory
- https://github.com/Ettercap/ettercap/commit/1d8badb713579419a29a494bb463a1af59707e98Patch
- https://github.com/Ettercap/ettercap/pull/1330Issue TrackerPatch
- https://github.com/Ettercap/ettercap/blob/v0.8.4.1/src/ec_filter.c#L593-L625Technical Details
- VulnCheck Advisory: Ettercap through 0.8.4.1 Use-After-Free via PCRE2 Filter SubstitutionThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.