CVE-2025-64519 TorrentPier is Vulnerable to Authenticated SQL Injection through Moderator Control Panel's topic_id parameter
Authenticated moderators can execute arbitrary SQL queries via the topic_id parameter, allowing them to read, modify, or delete database data.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-64519?
CVE-2025-64519 is a high-severity SQL injection vulnerability in torrentpier, published on 10 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
TorrentPier is an open source BitTorrent Public/Private tracker engine, written in php. In versions up to and including 2.8.8, an authenticated SQL injection vulnerability exists in the moderator control panel (`modcp.php`). Users with moderator permissions can exploit this vulnerability by supplying a malicious `topic_id` (`t`) parameter. This allows an authenticated moderator to execute arbitrary SQL queries, leading to the potential disclosure, modification, or deletion of any data in the database. Although it requires moderator privileges, it is still severe. A malicious or compromised moderator account can leverage this vulnerability to read, modify, or delete data. A patch is available at commit 6a0f6499d89fa5d6e2afa8ee53802a1ad11ece80.
Weakness: CWE-89
Which versions are affected by CVE-2025-64519?
2 open source packages ship an affected version, including torrentpier/torrentpier. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
torrentpier/torrentpier Packagist | All versions | 2.8.9 |
torrentpier/torrentpier Packagist | All versions | 2.8.9 |
Products include Torrentpier Torrentpier.
How do I fix CVE-2025-64519?
Upgrade torrentpier/torrentpier to 2.8.9 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-64519 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-64519 exists.
Other vulnerabilities in torrentpier
Sources
Also known as GHSA-4rwr-8c3m-55f6.