{"id":"CVE-2024-40624","published":"2024-07-15T19:28:35Z","modified":"2024-08-02T04:33:11Z","title":"Deserialization of untrusted data in torrentpier/torrentpier","vendor":"torrentpier","product":"torrentpier","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01979,"percentile":0.8116,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/torrentpier/torrentpier/security/advisories/GHSA-fg86-4c2r-7wxw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/torrentpier/torrentpier/commit/ed37e6e522f345f2b46147c6f53c1ab6dec1db9e","tags":["x_refsource_MISC"]},{"url":"https://github.com/torrentpier/torrentpier/blob/84f6c9f4a081d9ffff4c233098758280304bf50f/library/includes/functions.php#L41-L60","tags":["x_refsource_MISC"]}],"priority":{"score":23.1,"factors":[{"name":"EPSS percentile","points":16.23},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"torrentpier","affectedVersions":[{"vendor":"torrentpier","product":"torrentpier","versions":["< 2.4.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-07-15T20:17:52.971854Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"torrentpier/torrentpier","vulnerableRanges":["<2.4.4"],"patched":["2.4.4"],"from":["GHSA-fg86-4c2r-7wxw"],"provenance":"source"}],"summary":{"text":"The vulnerability is a deserialization of untrusted data flaw in the torrentpier/torrentpier product, where the get_tracks() function in torrentpier/library/includes/functions.php unsafely deserializes user-controlled cookies using native PHP serialization. An unauthenticated remote attacker with network access can exploit it without user interaction by sending a crafted cookie (such as bb_t, deserialized when viewforum.php is browsed) containing a payload built with the Guzzle/FW1 gadget chain, which can write arbitrary PHP code to a file and execute commands on the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:07Z"},"euvd":{"id":"EUVD-2024-2336","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-40624","published":"2024-07-15","fixed":"2.4.4","kev":false},{"cve":"CVE-2025-64519","published":"2025-11-10","fixed":"2.8.9","kev":false,"link":{"from":"CVE-2024-40624","to":"CVE-2025-64519","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:torrentpier/torrentpier","fromFixed":"2.4.4","toFixed":"2.8.9","daysApart":483}]}}],"package":"Packagist:torrentpier/torrentpier"}}