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).

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


SourceThis report was generated using AI

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

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