Exploit database

Vulnerability

CVE-2024-39205

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

An issue in pyload-ng v0.5.0b3.dev85 running under python3.11 or below allows attackers to execute arbitrary code via a crafted HTTP request.

CVE Program

Exploit source choices

2 sources
Pyload RCE (CVE-2024-39205) with js2py sandbox escape (CVE-2024-28397)
MSF-linux--http--pyload_js2py_cve_2024_39205MetasploitLinux,Unix / remotePreferred

CVE-2024-28397 is sandbox escape in js2py (<=0.74) which is a popular python package that can evaluate javascript code inside a python interpreter. The vulnerability allows for an attacker to obtain a reference to a python object in the js2py environment enabling them to escape the sandbox, bypass pyimport restrictions and execute arbitrary commands on the host. At the time of writing no patch has been released, version 0.74 is the latest version of js2py which was released Nov 6, 2022. CVE-2024-39205 is an remote code execution vulnerability in Pyload (<=0.5.0b3.dev85) which is an open-source download manager designed to automate file downloads from various online sources. Pyload is vulnerable because it exposes the vulnerable js2py functionality mentioned above on the /flash/addcrypted2 API endpoint. This endpoint was designed to only accept connections from localhost but by manipulating the HOST header we can bypass this restriction in order to access the API to achieve unauth RCE.

2024-10-28pyload_js2py_cve_2024_39205.rb
btar1gan/exploit_cve-2024-39205
GH-a01a07b10ca39262fdf97f5dc8ef4022GitHubUnofficial GitHub source

js2py sandbox escape to reverse shell

2025-12-231 file · 1 stars