# CVE-2024-23752: Code execution in pandasai

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-22T00:00:00.000Z
- Modified: 2026-11-16T16:00:03.961Z
- Also known as: GHSA-5g73-69p4-7gvx, PYSEC-2026-446
- Weaknesses: CWE-94, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pandasai (PyPI): up to 1.5.17
- gabrieleventuri pandasai: up to 1.5.17

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gventuri/pandas-ai/issues/868> (exploit, mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23752> (advisory)
- <https://github.com/gventuri/pandas-ai> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pandasai/PYSEC-2026-446.yaml> (web)
- <https://pypi.org/project/pandasai> (package, web)
- <https://github.com/advisories/GHSA-5g73-69p4-7gvx> (advisory)

## Sources

- CVE List: [CVE-2024-23752](https://www.cve.org/CVERecord?id=CVE-2024-23752), CVE Terms of Use, modified 2025-05-30
- GitHub Advisory Database: [GHSA-5g73-69p4-7gvx](https://github.com/advisories/GHSA-5g73-69p4-7gvx), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2024-23752](https://nvd.nist.gov/vuln/detail/CVE-2024-23752), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-446](https://osv.dev/vulnerability/PYSEC-2026-446), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-23752 · Whole record: https://cve.day/CVE-2024-23752.json · Rebuilt by cve.day 2026-11-25T22:58:36.261Z
