---
id: "CVE-2023-39661"
page: "https://infrastack.ai/live/CVE-2023-39661"
kind: "vulnerability"
aliases: ["CVE-2023-39661", "GHSA-8fp9-43pw-56vw"]
title: "PandasAI vulnerable to arbitrary code execution"
severity: "critical"
cvss: 9.8
epss: 0.01417
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "pandasai", "fixed": [], "affected": "<= 0.8.1", "ecosystem": "pypi"}, {"name": "gabrieleventuri pandasai", "fixed": [], "affected": "<= 0.9.1", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["ai-tooling", "cwe-74", "cwe-94", "data-analysis", "llm", "pandasai", "python"]
not_affected_if: ["no-user-prompts", "version-above-0.8.1"]
published_at: "2023-08-15T17:15:13+00:00"
first_seen_at: "2026-11-16T15:53:11+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-8fp9-43pw-56vw", "first_seen_at": "2026-11-16T15:53:11+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-39661", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "poc", "url": "https://github.com/gventuri/pandas-ai/issues/410"}, {"type": "epss", "score": 0.01417, "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-39661"}]
---

# PandasAI vulnerable to arbitrary code execution

Link for people: https://infrastack.ai/live/CVE-2023-39661 (this .md is for agents)

PandasAI, a Python library that lets users ask questions of their data in natural language, has a flaw in its _is_jailbreak check that lets a remote attacker execute arbitrary code. Affected versions are 0.8.1 and earlier.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pandasai affected <= 0.8.1 fixed no fixed version listed
- vendor:gabrieleventuri pandasai affected <= 0.9.1 fixed no fixed version listed

## How to check

- Run `pip show pandasai` and confirm whether the installed version is `0.8.1` or earlier.
- Check requirements files and lockfiles for a pandasai pin at or below `0.8.1`.

## Timeline

- 2026-11-16T15:53:11+00:00 ghsa https://github.com/advisories/GHSA-8fp9-43pw-56vw
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2023-39661

## Documents

- [poc] Exploit: github.com https://github.com/gventuri/pandas-ai/issues/410

## From the sources

An issue in pandas-ai v.0.8.1 and before allows a remote attacker to execute arbitrary code via the `_is_jailbreak` function.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
