Arbitrary Command Injection Affecting plotai package, versions [,0.0.7)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PLOTAI-9398272
  • published12 Mar 2025
  • disclosed10 Mar 2025
  • creditEryk Winiarz

Introduced: 10 Mar 2025

CVE-2025-1497  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade plotai to version 0.0.7 or higher.

Overview

plotai is a Create plots in Python with AI

Affected versions of this package are vulnerable to Arbitrary Command Injection in executor.py due to lack of validation of LLM-generated output. An attacker can supply code which will then be executed with Python's exec() function.

CVSS Base Scores

version 4.0
version 3.1