CVE-2026-4997 Sinaptik AI PandasAI sql_sanitizer.py is_sql_query_safe path traversal

Medium 6.9 Published Updated

Remote attackers can exploit a path traversal flaw in PandasAI's SQL sanitizer to access unauthorized files, requiring permissions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-4997?

CVE-2026-4997 is a medium-severity path traversal vulnerability in Sinaptik AI PandasAI, published on 28 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2026-4997?

How do I fix CVE-2026-4997?

No fix has been published for CVE-2026-4997 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-4997 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-4997 exists.

Sources

Also known as GHSA-93x8-h4qh-r29w.

Is CVE-2026-4997 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free