Unauthenticated code execution via js2py sandbox escape
Published Oct 28, 2024 · Updated Oct 30, 2024
Code injection in pyLoad-ng 0.5.0b3.dev85 on Python 3.11 and earlier allows remote attackers to execute arbitrary shell commands. The /flash/addcrypted2 endpoint evaluates attacker-controlled jk data with js2py, whose sandbox permits access to Python subprocess execution. A forged Host header bypasses the endpoint's localhost-only restriction, so exploitation requires neither an account nor user interaction.
Summary
What happened
Code injection in pyLoad-ng 0.5.0b3.dev85 on Python 3.11 and earlier allows remote attackers to execute arbitrary shell commands. The /flash/addcrypted2 endpoint evaluates attacker-controlled jk data with js2py, whose sandbox permits access to Python subprocess execution. A forged Host header bypasses the endpoint's localhost-only restriction, so exploitation requires neither an account nor user interaction.
The record
- CVE
- CVE-2024-39205
- Published
- Oct 28, 2024
- Updated
- Oct 30, 2024
- Vendor
- pyLoad Team
- Product
- pyLoad-ng
- Classifications
- CWE-94, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 28, 2024CVE publishedPublication date reported by the CVE source.
- Oct 30, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0.5.0b3.dev85
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- CVE-2024-39205 Pyload RCE proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo