---
id: CVE-2024-12366
aliases:
  - GHSA-vv2h-2w3q-3fx7
  - PYSEC-2026-448
title: PandasAI interactive prompt function Remote Code Execution (RCE)
summary: PandasAI interactive prompt function Remote Code Execution (RCE)
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: pandasai
product: pandasai
ecosystem: pip
affected:
  - pandasai <= 2.4.2
published: '2025-02-11'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:06.211876644Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-vv2h-2w3q-3fx7'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-12366'
  - url: 'https://docs.getpanda.ai/v3/privacy-security'
  - url: 'https://docs.pandas-ai.com/advanced-security-agent'
  - url: 'https://github.com/sinaptik-ai/pandas-ai'
  - url: 'https://www.kb.cert.org/vuls/id/148244'
tags:
  - osv
  - pip
epss: 0.01214
epssPercentile: 0.67206
ingestedAt: '2026-09-12T03:13:01.731Z'
---

## Overview

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. The security controls of PandasAI (2.4.3 and earlier) fail to distinguish between legitimate and malicious inputs, allowing the attackers to manipulate the system into executing untrusted code, leading to untrusted code execution (RCE), system compromise, or pivoting attacks on connected services.

## Affected packages

- `pandasai <= 2.4.2`

## Remediation

Refer to the advisory for the patched release.
