CVE-2026-4998 Sinaptik AI PandasAI Chat Message code_executor.py CodeExecutor.execute code injection

Medium 6.9 Published Updated

Remote attackers can execute arbitrary code via the Chat Message Handler in PandasAI, requiring immediate mitigation due to public exploit availability.

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-4998?

CVE-2026-4998 is a medium-severity code injection 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 weakness has been identified in Sinaptik AI PandasAI up to 3.0.0. This vulnerability affects the function CodeExecutor.execute of the file pandasai/core/code_execution/code_executor.py of the component Chat Message Handler. Executing a manipulation can lead to code injection. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-94, CWE-74

Which versions are affected by CVE-2026-4998?

How do I fix CVE-2026-4998?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-4998 being exploited?

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

Sources

Also known as GHSA-89r4-257g-hhwq.

Is CVE-2026-4998 in your software?

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

Check your SBOMs for free