Description
Ettercap through 0.8.4.1 contains an out-of-bounds read and size_t underflow vulnerability in sslw_remove_sts() in src/ec_sslwrap.c, caused by a stale length and an unchecked memmem() result when stripping Strict-Transport-Security headers. A malicious HTTPS server whose response passes through Ettercap's SSL interception can trigger out-of-bounds reads and memory corruption in the Ettercap process, which normally runs as root.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Ettercap | ettercap | ≤ 0.8.4.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | ettercap | No fix yet | — |
| Debian 12 | ettercap | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ettercap | No fix yet | — |
| Ubuntu 26.04 LTS | ettercap | No fix yet | — |
| Ubuntu 24.04 LTS | ettercap | No fix yet | — |
| Ubuntu 22.04 LTS | ettercap | No fix yet | — |
| Ubuntu 20.04 LTS | ettercap | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ettercap | No fix yet | — |
| Ubuntu 16.04 LTS | ettercap | No fix yet | — |
References
- GitHub Security Advisory (GHSA-hq2w-pg4m-6w63) 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_sslwrap.c#L1294-L1322 technical-description
- VulnCheck Advisory: Ettercap through 0.8.4.1 Out-of-Bounds Read via sslw_remove_sts third-party-advisory