Description
Stack-based buffer overflow in the btFiles::BuildFromMI function (trunk/btfiles.cpp) in Enhanced CTorrent (aka dTorrent) 3.3.2 and probably earlier, and CTorrent 1.3.4, allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a Torrent file containing a long path.
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 14 | ctorrent | 1.3.4-dnh3.2-1.1 | — |
| Debian 13 | ctorrent | 1.3.4-dnh3.2-1.1 | — |
| Debian 12 | ctorrent | 1.3.4-dnh3.2-1.1 | — |
| Debian 5.0 | ctorrent | 1.3.4-dnh3.2-1+lenny1 | DSA-1817-1 |
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
- cTorrent/DTorrent - '.torrent' Local Buffer Overflow EDB-8470 · local · Apr 17, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1817-1 ctorrent - arbitrary code execution Debian Security (DSA / DLA) · Mar 9, 2026
References
- FEDORA-2009-8969 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=501813
- ADV-2009-1092 vdb-entry
- http://dtorrent.svn.sourceforge.net/viewvc/dtorrent/dtorrent/trunk/btfiles.cpp?r1=296&r2=301&view=patch
- 8470 exploit
- ctorrent-btfiles-bo(49959) vdb-entry
- 34752 third-party-advisory
- [oss-security] 20090520 CVE request: ctorrent mailing-list
- 34584 vdb-entry
- DSA-1817 vendor-advisory
- FEDORA-2009-8897 vendor-advisory
- 36471 third-party-advisory
- 35499 third-party-advisory
- http://sourceforge.net/tracker/?func=detail&aid=2782875&group_id=202532&atid=981959