{"id":"CVE-2024-23752","aliases":["CVE-2024-23752","GHSA-5g73-69p4-7gvx","PYSEC-2026-446"],"related":[],"kind":"vulnerability","state":"published","title":"Code execution in pandasai","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"GenerateSDFPipeline en Synthetic_dataframe en PandasAI (también conocido como pandas-ai) hasta 1.5.17 permite a los atacantes activar la generación de código Python arbitrario que es ejecutado por SDFCodeExecutor. Un atacante puede crear un marco de datos que proporcione una especificación en inglés de este código Python. NOTA: el proveedor intentó anteriormente restringir la ejecución del código en respuesta a un problema separado, CVE-2023-39660.","source":"nvd"}],"published":"2024-01-22T00:00:00.000Z","modified":"2026-11-16T16:00:03.961Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94","CWE-862"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.5.17"}],"ecosystem":"PyPI","package":"pandasai","purl":"pkg:pypi/pandasai","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.5.17"}],"vendor":"gabrieleventuri","product":"pandasai","cpe":"cpe:2.3:a:gabrieleventuri:pandasai:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.5.17"}],"ecosystem":"PyPI","package":"pandasai","purl":"pkg:pypi/pandasai","source":"pysec"}],"references":[{"url":"https://github.com/gventuri/pandas-ai/issues/868","tags":["exploit","mailing-list","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23752","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gventuri/pandas-ai","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pandasai/PYSEC-2026-446.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/pandasai","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-5g73-69p4-7gvx","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-05-08T15:59:19.996Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-23752","url":"https://www.cve.org/CVERecord?id=CVE-2024-23752","licence":"CVE Terms of Use","modified":"2025-05-30T14:23:33.821Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5g73-69p4-7gvx","url":"https://github.com/advisories/GHSA-5g73-69p4-7gvx","licence":"CC-BY-4.0","modified":"2026-11-16T16:00:03.961Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-23752","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23752","licence":"Public domain","modified":"2026-06-17T07:13:31.787Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-446","url":"https://osv.dev/vulnerability/PYSEC-2026-446","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:59.757Z"}],"updatedAt":"2026-11-25T22:58:36.261Z","epss":{"score":0.01006,"percentile":0.64018,"date":"2026-12-02T12:00:21.000Z"}}