# CVE-2024-40624: Deserialization of untrusted data in torrentpier/torrentpier

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.00%, higher than 63% of CVEs (2026-12-01)
- Published: 2024-07-15T17:48:26.000Z
- Modified: 2026-06-17T07:46:11.550Z
- Also known as: GHSA-fg86-4c2r-7wxw
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

TorrentPier is an open source BitTorrent Public/Private tracker engine, written in php. In `torrentpier/library/includes/functions.php`, `get_tracks()` uses the unsafe native PHP serialization format to deserialize user-controlled cookies. 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. This issue has been addressed in commit `ed37e6e52` which is expected to be included in release version 2.4.4. Users are advised to upgrade as soon as the new release is available. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- torrentpier torrentpier: < 2.4.4; before 2.4.4
- torrentpier/torrentpier (Packagist): before 2.4.4

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/torrentpier/torrentpier/security/advisories/GHSA-fg86-4c2r-7wxw> (web)
- <https://github.com/torrentpier/torrentpier/commit/ed37e6e522f345f2b46147c6f53c1ab6dec1db9e> (web)
- <https://github.com/torrentpier/torrentpier/blob/84f6c9f4a081d9ffff4c233098758280304bf50f/library/includes/functions.php#L41-L60> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-40624> (advisory)
- <https://github.com/torrentpier/torrentpier> (package)

## Sources

- CVE List: [CVE-2024-40624](https://www.cve.org/CVERecord?id=CVE-2024-40624), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-fg86-4c2r-7wxw](https://github.com/advisories/GHSA-fg86-4c2r-7wxw), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2024-40624](https://nvd.nist.gov/vuln/detail/CVE-2024-40624), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40624 · Whole record: https://cve.day/CVE-2024-40624.json · Rebuilt by cve.day 2026-11-25T22:58:42.945Z
