VYPR
Critical severityNVD Advisory· Published Aug 15, 2023· Updated Oct 8, 2024

CVE-2023-39661

CVE-2023-39661

Description

Insufficient filtering in pandas-ai's _is_jailbreak function allows remote code execution via crafted prompts that bypass the blacklist.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Insufficient filtering in pandas-ai's _is_jailbreak function allows remote code execution via crafted prompts that bypass the blacklist.

Vulnerability

CVE-2023-39661 describes a vulnerability in pandas-ai, a library for natural language queries to data, due to insufficient input sanitization in the _is_jailbreak function [1]. This function attempts to prevent execution of malicious code generated by the LLM, but its blacklist-based approach can be bypassed [3].

Exploitation

An attacker can craft a prompt that leads the LLM to generate Python code using alternative built-in methods not filtered by _is_jailbreak. For example, by using ''.__class__.__mro__[-1].__subclasses__() to access the os.system function, arbitrary system commands can be executed [3]. No authentication is required, as the vulnerability is triggered through the normal query interface.

Impact

Successful exploitation results in remote code execution on the server running pandas-ai, allowing the attacker to execute arbitrary commands, read sensitive data, or perform other malicious actions.

Mitigation

Users should upgrade pandas-ai to a version after 0.9.1 where the fix is applied. The vendor's advisory (referenced in the NVD entry [2]) and the GitHub issue [3] provide further details.

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
pandasaiPyPI
<= 0.8.1

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.