CVE-2024-12366 Details
Description
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.
A prompt injection vulnerability has been identified in PandasAI, an open-source Python library that facilitates natural language processing and data analysis. This vulnerability allows attackers to inject malicious Python code into prompts, which the library's large language model (LLM) can execute. As a result, arbitrary code execution is possible, potentially compromising the system running PandasAI. The issue arises from the library's failure to properly separate code from data in its interactive prompt function, trusting all code generated by the LLM.
Users can update to PandasAI version 2.4.4 or later, where this vulnerability has been addressed. Additionally, SinaptikAI has introduced a Security parameter in the configuration file, allowing users to select from three security configurations: Standard, Advanced, or None. More information can be found in the PandasAI documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 11, 2025CISA-ADP
Assessed Feb 11, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.kb.cert.org/vuls/id/148244 | CVE | AdvisoryRemedy |
| https://docs.getpanda.ai/v3/privacy-security | [email protected] | Broken LinkVendor |
| https://docs.pandas-ai.com/advanced-security-agent | [email protected] | Vendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| PandasAI | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 11, 2025 | CVE Modified | CISA-ADP |
| Feb 11, 2025 | CVE Modified | CVE |
| Feb 11, 2025 | New CVE Received | [email protected] |
Volerion