Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · PandasAI

CVE-2024-12366: PandasAI interactive prompt function Remote Code Execution (RCE)

criticalCVSS 3.1 9.8GHSA-vv2h-2w3q-3fx7

PandasAI uses an interactive prompt function that is vulnerable to prompt injection and run arbitrary Python code that can lead to Remote Code Execution (RCE) instead of the intended explanation of the natural language processing by the LLM.

Published Feb 11, 2025

Affected packages

pandasai

Ecosystem
PyPI
Affected
<= 2.4.2
Fixed in
No patched version yet
Check
pip show pandasai

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

PandasAI uses an interactive prompt function that is vulnerable to prompt injection and run arbitrary Python code that can lead to Remote Code Execution (RCE) instead of the intended explanation of the natural language processing by the LLM. The security controls of PandasAI (2.4.3 and earlier) fail to distinguish between legitimate and malicious inputs, allowing the attackers to manipulate the system into executing untrusted code, leading to untrusted code execution (RCE), system compromise, or pivoting attacks on connected services.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PandasAI vulnerabilities

All PandasAI entries