CVE-2025-64519
PHP vulnerability analysis and mitigation

Overview

TorrentPier, an open source BitTorrent Public/Private tracker engine written in PHP, contains an authenticated SQL injection vulnerability (CVE-2025-64519) in versions up to and including 2.8.8. The vulnerability exists in the moderator control panel (modcp.php) where users with moderator permissions can exploit the topic_id (t) parameter. The vulnerability was disclosed on November 10, 2025, and a patch is available in commit 6a0f6499d89fa5d6e2afa8ee53802a1ad11ece80 (GitHub Commit, GitHub Advisory).

Technical details

The vulnerability is triggered when modcp.php processes a request containing the topicid parameter. The $topicid variable is directly embedded into an SQL query without proper sanitization or parameterization. The vulnerable code block in modcp.php constructs an SQL query using direct string concatenation: WHERE t.topic_id = $topic_id. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating network accessibility, low attack complexity, and high impact on confidentiality, integrity, and availability (GitHub Advisory).

Impact

Despite requiring moderator privileges, the vulnerability's impact is severe. A malicious or compromised moderator account can execute arbitrary SQL queries leading to: 1) Reading sensitive data including user credentials, private messages, and email addresses, 2) Modifying database records such as elevating privileges to administrator level, and 3) Corrupting or destroying forum data by dropping tables or deleting records (GitHub Advisory).

Mitigation and workarounds

A patch has been released that fixes the vulnerability by properly casting the topicid parameter to an integer: `$topicid = isset($REQUEST[POSTTOPICURL]) ? (int)$REQUEST[POSTTOPICURL] : 0`. Users should upgrade to a version containing the fix from commit 6a0f6499d89fa5d6e2afa8ee53802a1ad11ece80 (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management