{"id":"CVE-2026-125400","summary":"Ettercap before 0.8.5.1 Use-After-Free via PCRE2 Filter Substitution","details":"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.","aliases":["GHSA-f3j5-rhhr-85j5"],"modified":"2026-11-21T20:45:52.068386465Z","published":"2026-11-09T23:28:02.839Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125400.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-416"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125400.json"},{"type":"ADVISORY","url":"https://github.com/Ettercap/ettercap/security/advisories/GHSA-f3j5-rhhr-85j5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125400"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ettercap-through-0.8.4.1-use-after-free-via-pcre2-filter-substitution"},{"type":"FIX","url":"https://github.com/Ettercap/ettercap/commit/1d8badb713579419a29a494bb463a1af59707e98"},{"type":"FIX","url":"https://github.com/Ettercap/ettercap/pull/1330"},{"type":"PACKAGE","url":"https://github.com/Ettercap/ettercap"},{"type":"ARTICLE","url":"https://github.com/Ettercap/ettercap/blob/v0.8.4.1/src/ec_filter.c#L593-L625"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ettercap/ettercap","events":[{"introduced":"0"},{"fixed":"832524f3c4c215f1007fe9f190dbf052ee965b55"},{"fixed":"1d8badb713579419a29a494bb463a1af59707e98"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"0.8.5.1"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"1d8badb713579419a29a494bb463a1af59707e98"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.8.4.1","v0.8.4","v0.8.3.1","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.7.6","v0.7.5.3","v0.7.5.2","v0.7.5.1","v0.7.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125400.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}