Description
Stack-based buffer overflow in the scan_load_hosts function in ec_scan.c in Ettercap 0.7.5.1 and earlier might allow local users to gain privileges via a Trojan horse hosts list containing a long line.
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 | 1:0.7.5.1-2 | — |
| Debian 12 | ettercap | 1:0.7.5.1-2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Ettercap 0.7.5.1 - Stack Overflow EDB-23945 · dos · Jan 7, 2013
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://www.securation.com/files/2013/01/ec.patch
- 23945 exploit
- 51731 third-party-advisory
- 57175 vdb-entry
- https://bugs.gentoo.org/show_bug.cgi?id=451198
- https://bugzilla.redhat.com/show_bug.cgi?id=894092