Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2024-39205: Remote code execution in pyload-ng through localhost restriction bypass and js2py sandbox escape

Published Oct 28, 2024 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS11.2%97th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Pyload-Ng Project
IdentifiersCVE-2024-39205CWE-94

pyload-ng through version 0.5.0b3.dev85 running on Python 3.11 or earlier is vulnerable to remote code execution through its Flash encrypted-link submission endpoint. An attacker can use a crafted HTTP header to bypass the endpoint's localhost restriction and exploit the underlying js2py sandbox escape, CVE-2024-28397, to execute arbitrary code.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A remote attacker can execute arbitrary shell commands with the privileges of the pyload-ng process, compromising data and functionality accessible to that process.

Mitigation

If you can’t patch tonight, do this now.

Running pyload-ng on Python 3.12 or later avoids the described js2py-dependent attack path because pyload-ng does not use js2py on those runtimes. No other explicit workaround is identified.

Remediation

Patch, then assume compromise.

A fixed pyload-ng or js2py release is not identified in the available information. Version 0.5.0b3.dev85 is the last explicitly identified affected pyload-ng version; a first fixed release is currently unknown.

Public exploits

Exploits

4 exploits validated by Mallory's analysis.

View more in app →
pyload_js2py_cve_2024_39205.rbThis repository contains a single Metasploit module targeting Pyload (<=0.5.0b3.dev85) with js2py (<=0.74), exploiting two vulnerabilities: CVE-2024-39205 (Pyload RCE) and CVE-2024-28397 (js2py sandbox escape). The exploit leverages a flaw in the /flash/addcrypted2 API endpoint, which is intended to be accessible only from localhost, but can be accessed remotely by manipulating the Host header. The module crafts a malicious JavaScript payload that escapes the js2py sandbox, allowing arbitrary command execution on the host. The exploit supports both direct command execution and staged payload delivery (dropper), and is weaponized for use within the Metasploit framework. The only file present is a Ruby module, structured according to Metasploit conventions, and includes all logic for vulnerability checking, payload generation, and exploitation. No external endpoints or IPs are hardcoded beyond the localhost reference for the Host header. The module is suitable for operational use against vulnerable Pyload installations.Disclosed Oct 28, 2024 · Framework: metasploit · ruby · networkWeaponizedexploit_CVE-2024-39205This repository contains a single file, 'reverse_shell.py', which is not a standard Python script but rather a hybrid of JavaScript-like and Python code. The script's main purpose is to obtain a reference to Python's 'subprocess.Popen' class through introspection and then execute a bash command that opens a reverse shell to the attacker's machine at 10.10.16.51:4321. The payload is a classic bash reverse shell, and the script is designed to work in an environment where such introspection is possible (e.g., a Python sandbox with JavaScript bindings or a vulnerable server-side JavaScript/Python interpreter). The exploit is operational, as it provides a working reverse shell payload, but it is not weaponized for broad use. The main attack vector is network-based, requiring the target to connect back to the attacker's IP and port. The endpoints involved are the attacker's IP address, TCP port, and the '/dev/tcp/...' pseudo-file used by bash to initiate the connection.btar1gan · Disclosed Dec 23, 2025 · javascript · python · networkOperationalCVE-2024-8856-PoCRepository contains two distinct PoCs/scanners: 1) CVE-2024-8856 (WordPress WP Time Capsule) unauthenticated file upload leading to RCE: - PoC/src/scanner.py: a simple vulnerability scanner that POSTs a PHP file to /wp-content/plugins/wp-time-capsule/wp-tcapsule-bridge/upload/php/index_REAL.php and flags vulnerable if HTTP 200 is returned. - PoC/src/scanner_real.py: a more operational RCE PoC. It generates PHP payloads that run system commands (ping/id/whoami/uname, read /etc/os-release, php -v) and writes a proof file under /tmp. After upload, it attempts to trigger execution by requesting guessed locations for the uploaded file (under wp-content/uploads, plugin tmp, and wp-time-capsule uploads). It records partial output as evidence and writes results to real_rce_result.json. - Stand/docker-compose.yml + Stand/init-plugin.sh: a local lab environment. docker-compose provisions WordPress (exposed on localhost:9999) and MariaDB; init-plugin.sh installs wp-time-capsule.1.22.21.zip, activates it via WP-CLI, and creates the vulnerable directory structure. 2) CVE-2024-39205 (js2py sandbox escape) educational demonstration: - PoC/src/scanner_real2.py: crafts a JavaScript payload that traverses Python object internals to locate subprocess.Popen and execute a single “safe” ping command to a user-supplied IP. It sends a raw HTTP POST to /flash/addcrypted2 with parameters package, crypted (base64 dummy), and jk (URL-encoded JS payload). Verification is done by running tcpdump locally to detect an ICMP echo from the target to the tester. Outputs/artifacts: - PoC/src/scan_result.json and PoC/src/real_rce_result.json are example result formats; PoC/result.txt shows a sample run against http://localhost:9999. Overall purpose: provide a vulnerable WordPress stand and scripts to (a) detect and (b) demonstrate/collect evidence of RCE via WP Time Capsule upload endpoint (CVE-2024-8856), plus a separate educational sandbox-escape demonstration script for CVE-2024-39205 targeting an HTTP /flash/addcrypted2 endpoint.Evillm · Disclosed Feb 4, 2026 · python · bash · network (HTTP unauthenticated file upload leading to PHP RCE) · network (HTTP request triggering js2py sandbox escape leading to command execution)OperationalCVE-2024-39205-Pyload-RCEThis repository provides a proof-of-concept (PoC) exploit for CVE-2024-39205, targeting pyload-ng (<=0.5.0b3.dev85) running on Python 3.11 or below. The exploit leverages a sandbox escape vulnerability in js2py (CVE-2024-28397), which is used by the /flash/addcrypted2 API endpoint in pyload-ng. Although this endpoint is intended to be accessible only from localhost, the PoC demonstrates that this restriction can be bypassed using HTTP header manipulation, allowing remote attackers to send crafted POST requests. The payload is a JavaScript snippet that escapes the js2py sandbox and executes arbitrary shell commands on the server by traversing Python objects to invoke subprocess.Popen. The repository contains only a README.md with the exploit code and a .gitignore; there are no standalone code files. The exploit is a network-based remote code execution attack, and the main fingerprintable endpoint is the /flash/addcrypted2 API on the target server. The exploit is a PoC and requires the attacker to specify the target host and port.Marven11 · Disclosed Oct 26, 2024 · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Pyload-Ng ProjectPyload-Ngapplication
FAQ

Frequently asked questions

Is CVE-2024-39205 exploited in the wild?
As of Nov 28, 2026, Mallory has no reports of CVE-2024-39205 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-39205?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2024-39205, the earliest disclosed Oct 26, 2024.
Is there a patch for CVE-2024-39205?
A fixed pyload-ng or js2py release is not identified in the available information. Version 0.5.0b3.dev85 is the last explicitly identified affected pyload-ng version; a first fixed release is currently unknown.
What products are affected by CVE-2024-39205?
Pyload-Ng Project Pyload-Ng.
How severe is CVE-2024-39205?
CVE-2024-39205 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 11.2% (97th percentile) as of Nov 28, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.