{"id":"PYSEC-2026-446","summary":"Code execution in pandasai","details":"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.","aliases":["CVE-2024-23752","GHSA-5g73-69p4-7gvx"],"modified":"2026-07-01T20:22:59.757187Z","published":"2026-06-29T11:50:41.468092Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23752"},{"type":"WEB","url":"https://github.com/gventuri/pandas-ai/issues/868"},{"type":"PACKAGE","url":"https://github.com/gventuri/pandas-ai"},{"type":"PACKAGE","url":"https://pypi.org/project/pandasai"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5g73-69p4-7gvx"}],"affected":[{"package":{"name":"pandasai","ecosystem":"PyPI","purl":"pkg:pypi/pandasai"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.5.17"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.1.0","0.1.1","0.2.0","0.2.1","0.2.10","0.2.11","0.2.12","0.2.13","0.2.14","0.2.15","0.2.16","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.3.0","0.4.0","0.4.1","0.4.2","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.6.0","0.6.1","0.6.10","0.6.11","0.6.12","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.6.9","0.7.0","0.7.1","0.7.2","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","1.0","1.0.1","1.0.10","1.0.11","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.0a1","1.0a2","1.0b1","1.1","1.1.1","1.1.2","1.1.3","1.2","1.2.1","1.2.10","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.3","1.3.1","1.3.2","1.3.3","1.3b1","1.3b2","1.4","1.4.1","1.4.10","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","1.5.0","1.5.0a1","1.5.1","1.5.10","1.5.11","1.5.12","1.5.13","1.5.14","1.5.15","1.5.15a0","1.5.16","1.5.17","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8","1.5.9","1.5a2"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/pandasai/PYSEC-2026-446.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}