Browse / Unsafe Model Loading and Supply Chain / CVE-2024-9701
Kedro deserialization vulnerability
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Unsafe deserialisation
- Affected
- kedro (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.1% chance of exploitation in 30 days
How it works, in short
A crafted shelve file contains a pickle payload that runs Python code when Kedro's ShelveStore reads the stored session data. (Our summary, written by a model. The source text is below.)
Details
A Remote Code Execution (RCE) vulnerability has been identified in the Kedro ShelveStore class (version 0.19.8). This vulnerability allows an attacker to execute arbitrary Python code via deserialization of malicious payloads, potentially leading to a full system compromise. The ShelveStore class uses Python's shelve module to manage session data, which relies on pickle for serialization. Crafting a malicious payload and storing it in the shelve file can lead to RCE when the payload is deserialized.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9701
- https://github.com/kedro-org/kedro/commit/66e5e074b2789469550370f370c8b486f638d975
- https://github.com/kedro-org/kedro
- https://github.com/pypa/advisory-database/tree/main/vulns/kedro/PYSEC-2026-367.yaml
- https://huntr.com/bounties/96c77fef-93b2-4d4d-8cbe-57a718d8eea5
Source: GitHub Advisory Database, used under CC BY 4.0.