CVE-2024-40624 — Vulnerability in torrentpier/torrentpier
TorrentPier Deserialization of Untrusted Data vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.98%). Schedule for your next planned update.
Does your project use an affected torrentpier/torrentpier version?
Paste your composer.lock to check it for CVE-2024-40624 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
In torrentpier/library/includes/functions.php, get_tracks() uses the unsafe native PHP serialization format to deserialize user-controlled cookies:
PoC
One can use phpggc and the chain Guzzle/FW1 to write PHP code to an arbitrary file, and execute commands on the system. For instance, the cookie bb_t will be deserialized when browsing to viewforum.php.
Advisory Timeline
- First published July 15, 2024 (864 days ago).
- Last revised May 13, 2026 — 667 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "torrentpier/torrentpier:^2.4.4"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| torrentpier/torrentpier Packagist · Affected: 2.3.0.4-beta, 2.3.0.4-beta2, v2.2.0, v2.2.1 (+22 more) | 2.4.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/torrentpier/torrentpier/security/advisories/GHSA-fg86-4c2r-7wxwWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-40624ADVISORY
- https://github.com/torrentpier/torrentpier/commit/ed37e6e522f345f2b46147c6f53c1ab6dec1db9eWEB
- https://github.com/torrentpier/torrentpierPACKAGE
- https://github.com/torrentpier/torrentpier/blob/84f6c9f4a081d9ffff4c233098758280304bf50f/library/includes/functions.php#L41-L60WEB
Frequently Asked Questions
- What is CVE-2024-40624?
- TorrentPier Deserialization of Untrusted Data vulnerability. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-40624?
- CVE-2024-40624 affects torrentpier/torrentpier. It has a 2.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-40624 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 81.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-1651CRITICAL
Deserialization of Untrusted Data in Torrentpier
- CVE-2026-63412CRITICAL
Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-63413CRITICAL
Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2025-64519HIGH
TorrentPier is Vulnerable to Authenticated SQL Injection through Moderator Control Panel's topic_id parameter