---
title: "CVE-2024-12366: PandasAI interactive prompt function Remote Code Execution (RCE)"
url: https://erroneo.us/security/cve/CVE-2024-12366/
description: "CVE-2024-12366 (pandasai (PyPI)): PandasAI uses an interactive prompt function that is vulnerable to prompt injection and run arbitrary Python code that can…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-02-11
date_modified: 2025-02-11
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-12366"
kev: false
cvss: 9.8
epss: 0.01214
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-12366: PandasAI interactive prompt function Remote Code Execution (RCE)

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 1.2% , percentile 68: FIRST’s model estimates a 1.2% chance of exploitation activity in the next 30 days, higher than 68% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes pandasai (PyPI) <= 2.4.2, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

PandasAI uses an interactive prompt function that is vulnerable to prompt injection and run arbitrary Python code that can lead to Remote Code Execution (RCE) instead of the intended explanation of the natural language processing by the LLM.

## Affected packages

- PyPI `pandasai` <= 2.4.2 → fixed: none listed

## Affected products (CVE record)

- Sinaptik AI PandasAI: 2.4.0

## Severity

- CISA-ADP CVSS 3.1: 9.8 `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 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.21% probability of exploitation activity in the next 30 days; percentile 68.

## Sources

- [GitHub Advisory GHSA-vv2h-2w3q-3fx7](https://github.com/advisories/GHSA-vv2h-2w3q-3fx7)
- [CVE.org record CVE-2024-12366](https://www.cve.org/CVERecord?id=CVE-2024-12366)
- [NVD entry CVE-2024-12366](https://nvd.nist.gov/vuln/detail/CVE-2024-12366)
- [docs.pandas-ai.com](https://docs.pandas-ai.com/advanced-security-agent)
- [docs.getpanda.ai](https://docs.getpanda.ai/v3/privacy-security)
- [kb.cert.org](https://www.kb.cert.org/vuls/id/148244)

---
Source page: https://erroneo.us/security/cve/CVE-2024-12366/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
