CVE-2024-23752
Gabrieleventuri Pandasai vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Pandasai. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gabrieleventuri Pandasai runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/gventuri/pandas-ai/issues/868 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-23752
- github.com/pypa/advisory-database/tree/main/vulns/pandasai/PYSEC-2026-446.yaml
- pypi.org/project/pandasai
- github.com/advisories/GHSA-5g73-69p4-7gvx
- nvd.nist.gov/vuln/detail/CVE-2024-23752
- cve.org/CVERecord?id=CVE-2024-23752
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.