Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-23752 EUVD-2024-0261GHSA-5g73-69p4-7gvxPYSEC-2026-446

Code execution in pandasai

Published Jan 22, 2024 · Updated May 30, 2025 · Assigned by mitre

Description

GenerateSDFPipeline in synthetic_dataframe in PandasAI (aka pandas-ai) through 1.5.17 allows attackers to trigger the generation of arbitrary Python code that is executed by SDFCodeExecutor. An attacker can create a dataframe that provides an English language specification of this Python code. NOTE: the vendor previously attempted to restrict code execution in response to a separate issue, CVE-2023-39660.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pandasai <= 1.5.17 — GHSA-5g73-69p4-7gvx

References