Skip to content
CriticalVulnerabilityLLM-specific

CVE-2024-12366: PandasAI prompt injection leads to arbitrary Python code execution

Identifier
CVE-2024-12366
Published
Record updated
View JSON
Affected
  • pandasai <= 2.4.2
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.2%

Summary

CVE-2024-12366 affects PandasAI, which uses an interactive prompt function that is vulnerable to prompt injection. Attackers can run arbitrary Python code through it, leading to Remote Code Execution (RCE) in place of the intended natural language explanation from the LLM. NVD has not yet provided an assessment, and the entry was published 02/11/2025 with source CERT/CC.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.