CVE-2024-39205: 
Python vulnerability analysis and mitigation

Overview

A critical remote code execution (RCE) vulnerability identified as CVE-2024-39205 affects pyload-ng version 0.5.0b3.dev85 running under Python 3.11 or below. The vulnerability allows attackers to execute arbitrary code via crafted HTTP requests to the application (Rapid7, GitHub Advisory). The vulnerability was discovered and disclosed in October 2024, with a CVSS v3.1 base score of 9.8 CRITICAL (NVD).

Technical details

The vulnerability stems from the use of js2py (CVE-2024-28397) in pyload-ng's /flash/addcrypted2 API endpoint. While this endpoint was designed to only accept localhost connections, attackers can bypass this restriction by manipulating the HOST header to access the API. The vulnerability specifically involves a sandbox escape in js2py that allows attackers to obtain a reference to a Python object in the js2py environment, enabling them to bypass pyimport restrictions and execute arbitrary commands on the host (GitHub PoC).

Impact

The vulnerability allows unauthenticated attackers to achieve remote code execution with the privileges of the running pyload-ng process. Successful exploitation could lead to complete system compromise, allowing attackers to execute arbitrary commands on the affected system (GitHub Advisory).

Exploitability

The vulnerability is highly exploitable as it requires no authentication and can be triggered through a crafted HTTP request. Public proof-of-concept code is available, and the vulnerability has been weaponized into a Metasploit module, making it easily accessible to potential attackers (Rapid7).

Mitigation and workarounds

The primary mitigation is to run pyload-ng with Python 3.12 or above, as the application doesn't use js2py in these versions. Alternatively, users should upgrade to the newest version of pyload-ng when a patch becomes available (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-vx9f-3h24-rhvvHIGH7.4
  • Python logoPython
  • aegra-api
NoYesNov 28, 2026
GHSA-734j-f362-x99cMEDIUM5.4
  • Python logoPython
  • aegra-api
NoYesNov 28, 2026
GHSA-5cch-gwjj-2p3xMEDIUM5.4
  • Python logoPython
  • aegra-api
NoYesNov 28, 2026
GHSA-898j-h77w-5phhLOW3.7
  • Python logoPython
  • data-product-forge
NoYesNov 28, 2026
GHSA-jx4h-j67c-r3crLOWN/A
  • Python logoPython
  • multipart
NoYesNov 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management