Loading...
Skip to main content

CVE-2024-40624 — Vulnerability in torrentpier/torrentpier — CVE...

CRITICAL

TorrentPier Deserialization of Untrusted Data vulnerability

Published July 15, 2024Updated May 13, 2026Source: osv

Summary

### Summary In `torrentpier/library/includes/functions.php`, `get_tracks()` uses the unsafe native PHP serialization format to deserialize user-controlled cookies: https://github.com/torrentpier/torrentpier/blob/84f6c9f4a081d9ffff4c233098758280304bf50f/library/includes/functions.php#L41-L60 ### PoC One can use [`phpggc`](https://github.com/ambionics/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 (819 days ago).
  • Last revised May 13, 2026 — 667 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update torrentpier/torrentpier to 2.4.4 or later
composer require "torrentpier/torrentpier:^2.4.4"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
torrentpier/torrentpier
packagist
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-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-40624 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-fg86-4c2r-7wxw

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies