Skip to content
CriticalVulnerabilityLLM-specific

CVE-2024-23752: PandasAI arbitrary Python code execution through synthetic dataframe generation

Identifier
CVE-2024-23752
Published
Record updated
View JSON
Affected
  • pandasai <= 1.5.17
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.0%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

GenerateSDFPipeline in synthetic_dataframe in PandasAI (aka pandas-ai) through 1.5.17 lets attackers trigger generation of arbitrary Python code that SDFCodeExecutor then executes. An attacker can craft a dataframe whose English-language specification describes that Python code. The vendor had earlier tried to restrict code execution under CVE-2023-39660, which this note references.

Mitigation

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