Advisory

GHSA-vv2h-2w3q-3fx7

Also known as: CVE-2024-12366, PYSEC-2026-448

Summary

PandasAI interactive prompt function Remote Code Execution (RCE)

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2025-02-11 15:32 UTC
Modified
2026-11-16 16:00 UTC

Affected packages and fixes

pandasai

PyPI · All systems

Affected

  • introduced 0, last affected 2.4.2 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences