# CVE-2026-125400: Ettercap before 0.8.5.1 Use-After-Free via PCRE2 Filter Substitution

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-11-09T23:28:02.839Z
- Modified: 2026-11-20T13:18:35.530Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Ettercap ettercap: before 0.8.5.1

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Ettercap/ettercap/security/advisories/GHSA-f3j5-rhhr-85j5> (vendor-advisory)
- <https://github.com/Ettercap/ettercap/commit/1d8badb713579419a29a494bb463a1af59707e98> (patch)
- <https://github.com/Ettercap/ettercap/pull/1330> (issue-tracking, patch)
- <https://github.com/Ettercap/ettercap/blob/v0.8.4.1/src/ec_filter.c#L593-L625> (technical-description)
- <https://www.vulncheck.com/advisories/ettercap-through-0.8.4.1-use-after-free-via-pcre2-filter-substitution> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-125400](https://www.cve.org/CVERecord?id=CVE-2026-125400), CVE Terms of Use, modified 2026-11-20
- NVD: [CVE-2026-125400](https://nvd.nist.gov/vuln/detail/CVE-2026-125400), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-125400 · Whole record: https://cve.day/CVE-2026-125400.json · Rebuilt by cve.day 2026-11-25T22:59:49.701Z
