USN-9361-1: qBittorrent vulnerabilities
It was discovered that the Web UI in qBittorrent did not properly escape certain values. A remote attacker could possibly use this issue to perform cross-site scripting attacks. This issue only affected Ubuntu 16.04 LTS. (CVE-2017-6503) It was discovered that the Web UI in qBittorrent did not set the X-Frame-Options header. A remote attacker could possibly use this issue to perform clickjacking attacks. This issue only affected Ubuntu 16.04 LTS. (CVE-2017-6504) It was discovered that qBittorrent did not properly sanitize torrent names and tracker addresses passed to the external program run on torrent completion. A remote attacker could possibly use this issue to execute arbitrary commands. This issue only affected Ubuntu 18.04 LTS. (CVE-2019-13640) It was discovered that qBittorrent continued to use HTTPS connections after certificate validation errors. A remote attacker could possibly use this issue to perform a machine-in-the-middle attack. (CVE-2024-51774) It was discovered that qBittorrent did not prevent links in RSS feeds and search results from referencing local files. If a user were tricked into opening a specially crafted link, an attacker could possibly use this issue to cause qBittorrent to open arbitrary local files. (CVE-2025-54310)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/qbittorrentto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/qbittorrent-noxto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/qbittorrentto a version that resolves this vulnerability.Fixed in 3.3.1-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/qbittorrent-noxto a version that resolves this vulnerability.Fixed in 3.3.1-1ubuntu0.1~esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which Ubuntu releases are explicitly identified as affected by the Web UI issues and the command-execution issue?
The cross-site scripting and clickjacking issues, CVE-2017-6503 and CVE-2017-6504, only affected Ubuntu 16.04 LTS. The torrent-completion command-execution issue, CVE-2019-13640, only affected Ubuntu 18.04 LTS.
When is the command-execution issue relevant in practice?
It is relevant when qBittorrent passes torrent names or tracker addresses to an external program configured to run after torrent completion. Those values were not properly sanitized, allowing a remote attacker to possibly execute arbitrary commands.
What user interaction is required for the local-file link issue?
A user must be tricked into opening a specially crafted link originating from an RSS feed or search result. The issue exists because such links were not prevented from referencing local files.
What attacker position is needed for the HTTPS certificate-validation issue?
An attacker would need to be able to act as a machine in the middle of the HTTPS connection. qBittorrent could continue using HTTPS connections after certificate validation errors, enabling a possible machine-in-the-middle attack.