Skip to content
RCE Disclosed report Intermediate CVE-2024-9701

Kedro deserialization vulnerability

The Kedro ShelveStore class uses Python's shelve module, which relies on pickle for serialization. An attacker who can store a malicious payload in the shelve file could achieve remote code execution when the payload is deserialized.

kedro-org/kedro

Originally disclosed on huntr

Critical View original

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.

From the GitHub Advisory Database (GHSA-747f-ww56-4q4h, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the use of Python's pickle-based shelve module to deserialize session data without validating or restricting what can be loaded.

Impact

An attacker could execute arbitrary Python code, potentially leading to a full system compromise.

What the attacker needed

Ability to write to the shelve file

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Kedro is a tool for building data pipelines. Its ShelveStore saves session data using Python's shelve module, which uses pickle to turn objects into bytes and back. Pickle can run code when it loads data, so if an attacker can put a malicious file where Kedro reads it, they can run their own commands on the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.