CVE-2024-51774

8.1 HIGH

📋 TL;DR

qBittorrent versions before 5.0.1 fail to properly validate HTTPS certificates, allowing connections to proceed even when certificate validation errors occur. This vulnerability enables man-in-the-middle attacks where attackers can intercept and potentially modify traffic between qBittorrent and remote servers. All users running vulnerable versions are affected.

💻 Affected Systems

Products:
  • qBittorrent
Versions: All versions before 5.0.1
Operating Systems: Windows, Linux, macOS
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations using default settings. The vulnerability is present in the HTTPS handling code.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could perform man-in-the-middle attacks to intercept sensitive data, inject malicious content into downloads, or redirect users to malicious servers, potentially leading to remote code execution if combined with other vulnerabilities.

🟠

Likely Case

Attackers on the same network could intercept and manipulate qBittorrent traffic, potentially injecting malicious torrents or tracker responses that could compromise the system.

🟢

If Mitigated

With proper network segmentation and monitoring, the impact is limited to potential data interception within the compromised network segment.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: HIGH

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires network access to intercept traffic. No public proof-of-concept has been released, but the vulnerability is straightforward to exploit for attackers with network access.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 5.0.1

Vendor Advisory: https://www.qbittorrent.org/news

Restart Required: Yes

Instructions:

1. Download qBittorrent 5.0.1 or later from the official website. 2. Close qBittorrent completely. 3. Install the new version. 4. Restart qBittorrent.

🔧 Temporary Workarounds

Disable HTTPS connections

all

Configure qBittorrent to use only HTTP connections where possible

Network segmentation

all

Isolate qBittorrent traffic to trusted networks only

🧯 If You Can't Patch

  • Restrict qBittorrent to trusted networks only using firewall rules
  • Monitor network traffic for unusual HTTPS certificate errors or unexpected connections

🔍 How to Verify

Check if Vulnerable:

Check qBittorrent version in Help → About. If version is below 5.0.1, the system is vulnerable.

Check Version:

qbittorrent --version

Verify Fix Applied:

Verify version is 5.0.1 or higher in Help → About. Test HTTPS connections to ensure certificate validation is working.

📡 Detection & Monitoring

Log Indicators:

  • Multiple HTTPS connection failures with certificate errors
  • Unexpected connections to non-standard HTTPS endpoints

Network Indicators:

  • HTTPS traffic with invalid certificates being accepted
  • Unusual outbound connections from qBittorrent

SIEM Query:

source="qbittorrent.log" AND ("certificate" OR "SSL" OR "TLS") AND ("error" OR "failed" OR "invalid")

🔗 References

📤 Share & Export