CVE-2026-4997

Sinaptik AI PandasAI sql_sanitizer.py is_sql_query_safe path traversal

Published Mar 28, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An insecure implementation of the is_sql_query_safe function in PandasAI’s sql_sanitizer module permits malicious manipulation of the query string to cause the application to resolve file paths outside the intended directory, enabling path traversal. This flaw is classified as CWE‑22 and can lead to unauthorized read or write access to files on the host system, potentially compromising confidentiality, integrity, or availability of application data. The vulnerability is exploitable through remote input, as the function may process untrusted query strings supplied from outside the application.

Affected Systems

The flaw exists in all releases of Sinaptik AI PandasAI up to and including version 3.0.0. Any installation that imports pandasai.helpers.sql_sanitizer and invokes is_sql_query_safe without additional safeguards is affected.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, but the availability of a public exploit and the remote trigger raise the likelihood of real‑world attacks. An attacker who can supply crafted query strings to the vulnerable function may execute path traversal attacks to read or modify files on the host system. The absence of an official vendor patch in the CVE data means the risk remains until a fix or workaround is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Verify the installed PandasAI version and determine whether it is 3.0.0 or earlier; if so, seek an official vendor update or contact Sinaptik AI for guidance on a fix.
  • If an update cannot be applied immediately, implement server‑side validation that rejects query strings containing path traversal patterns (e.g., "..", directory separators) before they reach is_sql_query_safe.
  • Monitor application logs for unexpected file access or path resolution errors, and watch for repeated failure patterns that may indicate exploitation attempts.

Generated by OpenCVE AI on March 28, 2026 at 14:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sinaptik Ai
Sinaptik Ai pandasai
Vendors & Products Sinaptik Ai
Sinaptik Ai pandasai
Type Values Removed Values Added
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.
Title Sinaptik AI PandasAI sql_sanitizer.py is_sql_query_safe path traversal
Weaknesses CWE-22
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:N/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 30, 2026, 2:53 PM
Reserved
Mar 27, 2026, 1:48 PM
Status
Deferred
Published
Mar 28, 2026, 1:16 PM
Modified
Jun 17, 2026, 10:57 AM