{"id":"MSF-linux--http--pyload_js2py_cve_2024_39205","name":"Pyload RCE (CVE-2024-39205) with js2py sandbox escape (CVE-2024-28397)","description":"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.","cves":["CVE-2024-39205","CVE-2024-28397"],"author":"Marven11, Spencer McIntyre, jheysel-r7","published":"2024-10-28","platform":"Linux,Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/http/pyload_js2py_cve_2024_39205.rb","path":"modules/exploits/linux/http/pyload_js2py_cve_2024_39205.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"pyload_js2py_cve_2024_39205.rb","vulnerabilities":[{"id":"CVE-2024-39205","state":"PUBLISHED","title":null,"titleSource":null,"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2024-39205","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-39205"},"updatedAt":"2024-10-30T20:56:49.427Z","retrievedAt":"2026-11-25T17:51:11.483Z","stale":false,"error":null},{"id":"CVE-2024-28397","state":"PUBLISHED","title":null,"titleSource":null,"description":"An issue in the component js2py.disable_pyimport() of js2py up to v0.74 allows attackers to execute arbitrary code via a crafted API call.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2024-28397","cvss":{"version":"3.1","baseScore":5.3,"severity":"medium","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-28397"},"updatedAt":"2024-08-02T00:56:57.584Z","retrievedAt":"2026-11-25T16:15:50.552Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--pyload_js2py_cve_2024_39205.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--pyload_js2py_cve_2024_39205","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--pyload_js2py_cve_2024_39205/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--pyload_js2py_cve_2024_39205/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}