Description
Directory traversal vulnerability in torrent.cpp in KTorrent before 2.1.3 only checks for the ".." string, which allows remote attackers to overwrite arbitrary files via modified ".." sequences in a torrent filename, as demonstrated by "../" sequences, due to an incomplete fix for CVE-2007-1384.
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 | ktorrent | 2.1.4.dfsg.1-1 | — |
| Debian 13 | ktorrent | 2.1.4.dfsg.1-1 | — |
| Debian 12 | ktorrent | 2.1.4.dfsg.1-1 | — |
| Debian 4.0 | ktorrent | 2.0.3+dfsg1-2etch1 | DSA-1373-2, DSA-1373-1 |
Advisories 2
- DSA-1373-2 ktorrent - directory traversal Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1373-1 ktorrent - directory traversal vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://bugs.gentoo.org/show_bug.cgi?id=170303
- SUSE-SR:2007:007 vendor-advisory
- 24995 third-party-advisory
- 26773 third-party-advisory
- 25097 third-party-advisory
- http://bugs.kde.org/show_bug.cgi?id=143637
- DSA-1373 vendor-advisory
- MDKSA-2007:095 vendor-advisory
- GLSA-200705-01 vendor-advisory
- ktorrent-torrentcpp-directory-traversal(33566) vdb-entry
- 23745 vdb-entry
- USN-436-2 vendor-advisory