Code execution in pandasai
CVE-2024-23752 · GHSA-5g73-69p4-7gvx · published 2024-01-22 · updated 2026-11-16
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 1.0%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Total
- CISA SSVC
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.
No fixed release is listed yet for pandasai. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Command or code injection. Remove or disable the affected server or tool, or run it in a sandbox with no secrets in its environment.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| pandasai | PyPI | <= 1.5.17 | No fix yet |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalPandasAI interactive prompt function Remote Code Execution (RCE)pandasai
- CriticalPandasAI vulnerable to arbitrary code executionpandasai
- Highpandasai vulnerable to prompt injectionpandasai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.