CVE-2024-28397
Published: 20 June 2024
Summary
CVE-2024-28397 is a medium-severity Code Injection (CWE-94) vulnerability. Its CVSS base score is 5.3 (Medium).
Operationally, ranked in the top 1.7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2024-28397 is a code injection vulnerability in the js2py library up to version 0.74, specifically within the js2py.disable_pyimport() component. The flaw, tracked under CWE-94, permits attackers to execute arbitrary code through a crafted API call and carries a CVSS 3.1 score of 5.3 reflecting local access requirements.
A local attacker with low privileges can invoke the affected function with malicious input to escape the intended JavaScript sandbox and run arbitrary Python code on the host system, resulting in limited impacts to confidentiality, integrity, and availability.
Public references consist of GitHub repositories that demonstrate the sandbox escape technique, though no vendor advisory or official patch information is included in the available data. The EPSS score has reached a peak of 0.7214 with a current value of 0.5935, indicating measurable post-disclosure exploitation interest.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-2066
Vulnerability details
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.
Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.
Validates inputs used in dynamic code generation to block injected directives.
Directly prevents execution of attacker-supplied code written into data memory regions.