CVE-2024-23752
Python vulnerability analysis and mitigation

Overview

PandasAI (pandas-ai) through version 1.5.17 contains a vulnerability in the GenerateSDFPipeline component within the synthetic_dataframe module. The vulnerability allows attackers to trigger arbitrary command execution through maliciously crafted dataframe content. This issue was discovered and reported in January 2024 (NVD).

Technical details

The vulnerability stems from the SDFCodeExecutor component which executes Python code without proper validation checks. When using GenerateSDFPipeline, if the dataframe content is maliciously crafted, prompt injection can occur, leading to arbitrary code execution. The root cause is that the executor runs Python code directly without implementing any security controls or input validation (GitHub Issue).

Impact

Successful exploitation of this vulnerability could allow attackers to execute arbitrary commands on the system running the PandasAI library. This could potentially lead to system compromise, data theft, or other malicious activities depending on the system permissions under which the code is running (GitHub Issue).

Mitigation and workarounds

Users should upgrade to a version newer than 1.5.17 once a patch is available. In the meantime, careful validation of input data and dataframe content should be implemented before passing it to the GenerateSDFPipeline component (NVD).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22033HIGH8.6
  • PythonPython
  • label-studio
NoNoJan 12, 2026
CVE-2025-68472HIGH8.1
  • PythonPython
  • mindsdb
NoYesJan 12, 2026
CVE-2026-22251MEDIUM5.3
  • PythonPython
  • wlc
NoYesJan 12, 2026
CVE-2026-22691LOW2.7
  • PythonPython
  • pypdf2
NoYesJan 10, 2026
CVE-2026-22250LOW2.5
  • PythonPython
  • wlc
NoYesJan 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management