Pandas DataFrame.query Code Injection (Unpatched)

high Nessus Plugin ID 213084

Synopsis

The Pandas library installed on the remote host is affected by a code injection vulnerability.

Description

The version of the Pandas library installed on the remote host has an unpatched exposure. It is, therefore, affected by a code injection vulnerability in the pandas.DataFrame.query function. The function is intended to allow querying the columns of a DataFrame using a boolean expression. A malicious attacker can constructs a malicious query to bypass input validation mechanisms and trigger a code injection vulnerability which can lead to command execution if the code passes untrusted input into self.eval().

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

This vulnerability is currently not fixed. Fix the code manually or monitor new releases for a fix.

See Also

https://huntr.com/bounties/a49baae1-4652-4d6c-a179-313c21c41a8d

http://www.nessus.org/u?dbbeef33

http://www.nessus.org/u?f363005e

Plugin Details

Severity: High

ID: 213084

File Name: pandas_CVE-2024-9880.nasl

Version: 1.1

Type: local

Agent: windows, macosx, unix

Published: 12/17/2024

Updated: 12/17/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

CVSS v2

Risk Factor: High

Base Score: 7.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-9880

CVSS v3

Risk Factor: High

Base Score: 8.4

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: cpe:/a:pandas-dev:pandas

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 12/3/2024

Reference Information

CVE: CVE-2024-9880