CVE-2025-1497 Remote Code Execution in PlotAI

Critical 9.3 Published Updated

Attackers can execute arbitrary Python code via unvalidated LLM output in PlotAI, requiring manual code modification to exploit.

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

What is CVE-2025-1497?

CVE-2025-1497 is a critical code injection vulnerability in MLJAR PlotAI, published on 10 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability, that could result in Remote Code Execution (RCE), has been found in PlotAI. Lack of validation of LLM-generated output allows attacker to execute arbitrary Python code. Vendor commented out vulnerable line, further usage of the software requires uncommenting it and thus accepting the risk. The vendor does not plan to release a patch to fix this vulnerability.

Weakness: CWE-77, CWE-94

Which versions are affected by CVE-2025-1497?

3 open source packages ship an affected version, including plotai. It affects 1 product.

PackageAffectedFixed in
plotai PyPIAll versions0.0.7
plotai PyPIAll versions0.0.7
plotai PyPIAll versions0.0.7

Products include Mljar Plotai.

How do I fix CVE-2025-1497?

Upgrade plotai to 0.0.7 or later.

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

Is CVE-2025-1497 being exploited?

There is no known exploitation of CVE-2025-1497 in the wild and no public exploit code.

Sources

Also known as GHSA-2hmp-5wqg-f24h, PYSEC-2025-22.

Is CVE-2025-1497 in your software?

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

Check your SBOMs for free