Browse / Unsafe Model Loading and Supply Chain / CVE-2024-12215
Kedro allows Remote Code Execution by Pulling Micro Packages
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- kedro (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 1.1% chance of exploitation in 30 days
How it works, in short
Pulling a crafted micro package makes Kedro run the setup.py inside its archive during metadata extraction, executing attacker commands on the host. (Our summary, written by a model. The source text is below.)
Details
In kedro-org/kedro version 0.19.8, the pull_package() API function allows users to download and extract micro packages from the Internet. However, the function project_wheel_metadata() within the code path can execute the setup.py file inside the tar file, leading to remote code execution (RCE) by running arbitrary commands on the victim's machine.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-12215
- https://github.com/kedro-org/kedro
- https://huntr.com/bounties/fad27503-97a4-4933-91d4-96223b8c54d8
Source: GitHub Advisory Database, used under CC BY 4.0.