Skip to content

Code execution in pandasai

Critical severity GitHub Reviewed Published Jan 22, 2024 to the GitHub Advisory Database • Updated Feb 7, 2024

Package

pip pandasai (pip)

Affected versions

<= 1.5.17

Patched versions

None

Description

GenerateSDFPipeline in synthetic_dataframe in PandasAI (aka pandas-ai) through 1.5.17 allows attackers to trigger the generation of arbitrary Python code that is executed by SDFCodeExecutor. An attacker can create a dataframe that provides an English language specification of this Python code. NOTE: the vendor previously attempted to restrict code execution in response to a separate issue, CVE-2023-39660.

References

Published by the National Vulnerability Database Jan 22, 2024
Published to the GitHub Advisory Database Jan 22, 2024
Reviewed Jan 22, 2024
Last updated Feb 7, 2024

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2024-23752

GHSA ID

GHSA-5g73-69p4-7gvx

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.