Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious SQL payload in user input
-
DeliverySend request to pandas-ai agent endpoint
-
Exploit_execute_sql_query parses unfiltered SQL
-
ExecutionInjection executed against database
-
ImpactAccess/modify sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated attacker can exploit pandas-ai v3.0.0 when the pandasai.agent.base._execute_sql_query component processes user-supplied input. No victim interaction required. Default configurations vulnerable. |
| Impact | Despite the absence of CVSS scoring, EPSS probability, and CISA KEV confirmation, multiple risk signals indicate genuine exploitability: (1) SQL injection is a well-understood and easily exploitable vulnerability class with trivial proof-of-concept demonstrations; (2) the public GitHub gist reference suggests proof-of-concept code is available, lowering the barrier to exploitation; (3) pandas-ai is a rapidly adopted library for LLM-integrated data analysis, meaning the attack surface spans both data scientists and automated workflows with potential database access; (4) the _execute_sql_query component handles database operations directly, making successful injection capable of unauthorized data access or manipulation. The lack of CVSS data may reflect the vulnerability's recent discovery or incomplete vendor response rather than low severity. This should be treated as a high-priority issue pending patch availability, as SQL injection in database-connected libraries represents a direct path to data exfiltration or integrity compromise. |
| Exploit ScenarioDerived | An attacker crafts a natural-language prompt containing SQL injection syntax (e.g., embedding UNION SELECT or DROP TABLE commands in a data query request) and submits it to a pandas-ai agent configured to query a backend database. The vulnerable _execute_sql_query method concatenates the unsanitized prompt output directly into a SQL statement without parameterization. The injected SQL executes with the privileges of the database user account used by the application, allowing the attacker to extract sensitive data, modify records, or in extreme cases, execute OS commands if the database supports extended stored procedures. Proof-of-concept code is publicly available via the referenced GitHub gist, reducing the complexity barrier for exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 01, 2026
SQL injection in pandas-ai v3.0.0 allows remote code execution through the pandasai.agent.base._execute_sql_query component, enabling attackers to manipulate SQL queries and potentially access, modify, or exfiltrate database contents. No CVSS score, EPSS data, or KEV status is available; however, the vulnerability affects a widely-used data analysis library and publicly available proof-of-concept code exists, elevating real-world risk despite incomplete severity metrics.
RemediationAI
Immediate remediation requires upgrading pandas-ai to a patched version released by Sinaptik AI; however, no specific patched version number is confirmed in the provided data. Users should monitor the official pandas-ai GitHub repository (https://github.com/sinaptik-ai/pandas-ai) and vendor security advisories for patched release announcements. As an interim mitigation, restrict database query execution to least-privilege database accounts with minimal data access, implement input validation on user-supplied prompts before LLM processing, enforce parameterized queries (prepared statements) throughout the codebase, and disable or sandbox the pandas-ai agent component until a patch is confirmed available. Organizations should also audit database logs for evidence of SQL injection attempts or unusual query patterns.
Affected VersionsENISA
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 is a Python library that integrates large language models (LLMs) with data analysis workflows, allowing natural-language querying of dataframes and databases. The vulnerability exists in the _execute_sql_query method of the pandasai.agent.base module, which handles SQL query execution. The root cause is improper input validation or parameterization when constructing SQL queries, likely resulting from unsanitized LLM-generated or user-supplied input being directly concatenated into SQL statements (CWE-89: SQL Injection). This is a critical integration point where natural-language prompts are converted to database queries, creating a natural attack surface if LLM outputs or intermediate processing steps are not properly escaped or parameterized.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
DescriptionCVE.org
pandas-ai v3.0.0 was discovered to contain a SQL injection vulnerability via the pandasai.agent.base._execute_sql_query component.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-17959
GHSA-9cxr-vwm6-6vmr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB