Skip to main content

PandasAI CVE-2026-51898

| EUVDEUVD-2026-91705 CRITICAL
Code Injection (CWE-94)
2026-10-02 mitre GHSA-whj7-cr8f-v2cc
9.8
CVSS 3.1 · Vendor: mitre
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

CVSS 3.1 rates this 9.8 CRITICAL (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) - network, low-complexity, unauthenticated code injection (CWE-94) with full confidentiality, integrity and availability impact, consistent with remote code execution. However, the EPSS probability is only 0.16% (4th percentile), and the CVE is NOT on the CISA KEV list, so there is no evidence of active or widespread exploitation despite the high base score. The two references (a project GitHub issue and a public gist) strongly imply public exploit/PoC code exists, which raises the practical threat, but PoC availability is a distinct signal from active exploitation and must not be conflated. The most important caveat is a signal conflict: pandas-ai is a LIBRARY whose CodeExecutor.execute runs LLM-generated Python by design, so the PR:N/AV:N 9.8 vector only holds when the library is wired into an application that feeds untrusted user input into the pipeline with sandboxing disabled - in a closed/internal analytics deployment the real-world attack surface is far smaller than the base score suggests. No SSVC decision data was provided. Net assessment: a genuinely severe RCE-class flaw worth prompt patching for anyone exposing pandas-ai to untrusted input, but the low EPSS and absence of KEV indicate it is not currently seeing broad opportunistic exploitation.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 06, 2026

Arbitrary Python code execution in sinaptik-ai pandas-ai 3.0.0 allows remote, unauthenticated attackers to run attacker-controlled code through the CodeExecutor.execute path, giving full compromise of the host or container running the agent. The flaw is rated CVSS 3.1 9.8 CRITICAL (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and classified as CWE-94 code injection, meaning no privileges, credentials or user interaction are required per the assessed vector. EPSS is low at 0.16% (4th percentile) and there is no CISA KEV entry, so no public exploit identified at time of analysis, although a GitHub issue and a public gist referencing the bug are linked from the CVE record and should be reviewed as possible reproduction detail.

RemediationAI

No vendor-released patch identified in the available data at time of analysis, and the referenced upstream GitHub issue (https://github.com/sinaptik-ai/pandas-ai/issues/1893) is a disclosure thread rather than a confirmed tagged fix; teams should track that issue and the NVD record at https://nvd.nist.gov/vuln/detail/CVE-2026-51898 for an applicable release before assuming 3.0.0 is safe. Until a fix ships, treat pandas-ai 3.0.0 as an exposed code-execution service: do not expose the agent's prompt/query endpoint to untrusted networks, place it behind authentication and network allowlisting, and run the process as an unprivileged user inside a disposable container with a read-only root filesystem, dropped Linux capabilities and no outbound network egress (the egress block prevents exfiltration and payload download but will break legitimate calls to external LLM APIs, so route those through a broker instead). Where the code-execution path is not essential, disable or replace the LLM code-generation/execution flow entirely and use deterministic, non-executing data queries; if execution must remain, apply pre-execution validation of generated code with an AST/allowlist sandbox (restricted builtins, blocked imports of os, subprocess, socket) and accept the trade-off that aggressive sandboxing will break some legitimate generated analysis scripts. Monitor and log every CodeExecutor.execute invocation with the full generated source for forensic triage, and treat any pandas-ai deployment that processed untrusted natural-language input as potentially compromised, requiring credential rotation for any secrets reachable from that process.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pandas-ai (PandasAI) is an LLM-driven data-analysis library that converts natural-language questions into pandas/Python code and then executes that generated code on the user's behalf. The vulnerable component is CodeExecutor.execute, the execution primitive that runs LLM-generated or user-influenced code; CWE-94 (Improper Control of Generation of Code) is the root-cause class, meaning untrusted input reaches a code-generation/execution sink without adequate validation, sanitization or sandbox confinement. That maps directly onto the assessed CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - network reachable, low complexity, no privileges or user interaction required, with full confidentiality, integrity and availability impact, consistent with remote code execution. The central risk is architectural: PandasAI's design intentionally emits and evaluates Python, so any deployment that exposes the agent (as an API, web service, notebook backend or shared internal tool) effectively exposes a Python interpreter to whoever can reach the prompt entry point. CPE data supplied for this CVE is a placeholder (cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*:*) and EUVD lists affected versions as "n/a n/a", so the authoritative version signal remains the description and product line: pandas-ai 3.0.0. ENISA EUVD tracks the issue as EUVD-2026-91705, reported via MITRE/cveorg, and tags it RCE / Code Injection.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (mitre) · only source for this CVE.

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 06, 2026 - 03:22 NVD
9.8 (CRITICAL)
CVE Published
Oct 02, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Oct 02, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

sinaptik-ai pandas-ai 3.0.0 is vulnerable to Code Injection in CodeExecutor.execute.

Executive ViewAI

Why It Matters

Organizations that embed sinaptik-ai's pandas-ai 3.0.0 in analytics or AI agent workflows face a critical unauthenticated remote code execution flaw that can give an attacker full control of the host or container running the agent. Exposure is not universal: risk concentrates in deployments reachable from untrusted networks or that process untrusted prompts, files or model output through the code execution path. Because no vendor patch is currently available, leadership should treat this as a scoping and containment problem - confirm where the library runs and whether those systems are internet-facing - rather than a routine patching task.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: remove pandas-ai 3.0.0 hosts from untrusted network reach (deny inbound at firewall/load balancer); disable or remove the CodeExecutor.execute path where not operationally required; run agents in hardened, non-root, read-only, egress-restricted containers with no host mounts; strip cloud instance credentials and high-value secrets from those environments and rotate any that were exposed; validate all prompts, files and model output before they reach code-bearing paths; and enable monitoring/alerting for subprocess execution, unexpected outbound traffic and file writes on affected hosts. Note: no public exploit identified at time of analysis, and publicly available exploit code exists only as a GitHub issue and gist referenced in the CVE record.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy