SecurityContext

CVE-2024-40624: TorrentPier - Insecure Deserialization

  • Cve: CVE-2024-40624
  • Name: TorrentPier - Insecure Deserialization
  • 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.
  • Impact: Attackers can execute arbitrary PHP code and commands on the server, leading to full system compromise.
  • Remediation: Upgrade to version 2.4.4 once released, which includes the fix in commit ed37e6e52.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00995
  • Epss percentile: 0.63383
  • Assignee: [email protected]
  • Published at: 2024-07-15T20:15:04Z
  • Age in days: 862
  • Modified at: 2026-06-17T07:46:11Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-40624
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/torrentpier/torrentpier/blob/84f6c9f4a081d9ffff4c233098758280304bf50f/library/includes/functions.php#L41-L60
https://github.com/torrentpier/torrentpier/commit/ed37e6e522f345f2b46147c6f53c1ab6dec1db9e
https://github.com/torrentpier/torrentpier/security/advisories/GHSA-fg86-4c2r-7wxw

Products

ProductAffectedPlatform boundSourcesUrl
torrentpier:torrentpier< 2.4.4nocna_alias_text/v1/products/torrentpier/torrentpier

Projects

RepositoryLink kindsIndexedUrl
torrentpier/torrentpiercommit, fix, package, security_advisoryyes/v1/repositories/torrentpier/torrentpier

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts