Skip to main content
← Vulnerabilities

Ettercap through 0.8.4.1 Use-After-Free via PCRE2 Filter Substitution

Affects Ettercap through 0.8.4.1 when a filter uses a pcre_regex() substitution outside unoffensive mode and the build includes PCRE2 support.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

8.7HighCNA
Exploited
No known exploitation
Fix
Fix or patch referenced
Who is exposed
Not reported

Do first: Apply the patch listed under Evidence.

Published
Last modified
9/100 · provisional
Unclear
None on Exploit-DB, Metasploit or GitHub

Summary

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.

cve.now Index

9Pcve.now Index 9 of 100 · methodology v3 · provisional
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure?/25Unknown. Advisories don't say whether default setups are affected
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity8.7/10CVSS 8.7
  • No patch0/5No signal

What would change the score

  • Would score about 64 if added to CISA KEV
  • Would score about 59 if CISA's SSVC rates exploitation active
  • Would score about 31 if advisories confirm default setups are exposed

What to do

  • Apply the patch listed under Evidence.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • Ettercap ettercap

    through 0.8.4.1

Evidence 5

  1. Advisory
  2. Patch
  3. Patch
  4. Repository
  5. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

Questions about CVE-2026-125400

Is CVE-2026-125400 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

What does this mean?

A use-after-free bug in Ettercap's PCRE2 filter substitution corrupts heap memory using attacker-influenced sizes and offsets. Ettercap normally runs as root, so the corruption could potentially lead to code execution as root.Source: github.com, vulncheck.com

Which versions are affected by CVE-2026-125400?

ettercap: through 0.8.4.1.Source: cve.now feed data

Am I affected, and how do I check?

Ettercap through 0.8.4.1 is affected only when a filter contains a pcre_regex() substitution (a pcre_regex op with a replacement string), Ettercap is not in unoffensive mode, and it is built with PCRE2 support. To check a setup, review the filter files for pcre_regex operations with replacement strings, confirm whether unoffensive mode is in use, and check the build for PCRE2 support.Source: github.com, vulncheck.com

How do I fix CVE-2026-125400?

The checked facts do not name a fixed Ettercap release, so no specific upgrade target is confirmed. Check the project's advisory for a fixed version, and until then avoid running filters that contain pcre_regex() substitutions outside unoffensive mode.Source: github.com, vulncheck.com