CVE-2026-4997 Details
Description
A security flaw has been discovered in Sinaptik AI PandasAI up to 3.0.0. This affects the function is_sql_query_safe of the file pandasai/helpers/sql_sanitizer.py. Performing a manipulation results in path traversal. The attack may be initiated remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
A path traversal vulnerability has been identified in Sinaptik AI PandasAI versions through 3.0.0. The issue arises in the SQL query safety validation function, is_sql_query_safe, located in pandasai/helpers/sql_sanitizer.py. This function is intended to prevent malicious SQL execution by using a keyword blocklist, but it fails to block certain DuckDB table functions that can read arbitrary files from the filesystem. As a result, an attacker can craft a SELECT query that bypasses the safety checks and exfiltrates sensitive files, such as /etc/passwd or application-specific .env files containing API keys or other secrets. The vulnerability can be exploited remotely, without any authentication.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 28, 2026CISA-ADP
Assessed Mar 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/YLChen-007/0ea2685789929bdb6363f5aebb7cba9a | [email protected] | ExploitTechnical Analysis |
| https://vuldb.com/submit/778269 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/vuln/353884 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/353884/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Sinaptik AI PandasAI | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 28, 2026 | New CVE Received | [email protected] |
Volerion