CVE-2023-39661 PandasAI vulnerable to arbitrary code execution

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code in pandas-ai via the _is_jailbreak function, requiring an upgrade to secure the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-39661?

CVE-2023-39661 is a critical code injection vulnerability in n/a, published on 15 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-74

Which versions are affected by CVE-2023-39661?

3 open source packages ship an affected version, including pandasai. It affects 1 product.

PackageAffectedFixed in
pandasai PyPIAll versions to 0.8.1None
pandasai PyPIAll versions to 0.8.1None
pandasai PyPIAll versions to 0.8.1None

Products include Gabrieleventuri Pandasai.

How do I fix CVE-2023-39661?

No fix has been published for CVE-2023-39661 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-39661 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39661 exists.

Sources

Also known as GHSA-8fp9-43pw-56vw, PYSEC-2026-447.

Is CVE-2023-39661 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free