Vulnerabilities in pkg:pypi/plotai

PACKAGE
Advisory Identifier: GHSA-2hmp-5wqg-f24h
Advisory Summary

CVE-2025-1497 is a CRITICAL (CVSS 9.8) plotai eval vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Plotai libraries in the PyPI ecosystem. The issue involves plotai eval vulnerability. Remediation is available by upgrading affected packages to version 0.0.7.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/plotai

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/plotai. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2hmp-5wqg-f24h CVE-2025-1497 CRITICAL PlotAI eval vulnerability

CVE-2025-1497 at a Glance

CVE Identifier CVE-2025-1497
GHSA Identifier GHSA-2hmp-5wqg-f24h
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Plotai
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-1497

To remediate this vulnerability, upgrade all affected Plotai dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

plotai fixed: 0.0.7
pip install plotai>=0.0.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show plotai

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-1497, inspect your installed packages using pip:

pip show plotai

Analyze the terminal output to locate any version of Plotai in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.7), your application is affected.

Note: The pip show plotai command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Plotai, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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. PlotAI commented out vulnerable line, further usage of the software requires uncommenting it and thus accepting the risk.

CVE-2025-1497 Affected Plotai Versions

1 component(s)
Fixed Versions:
0.0.7
Product / Package Ecosystem Affected Versions Fixed Version
plotai
PyPI
< 0.0.7
0.0.7

References

Frequently Asked Questions

What is CVE-2025-1497?
CVE-2025-1497 is a security vulnerability in Plotai involving PlotAI eval vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Plotai versions are affected?
Affected versions include releases prior to 0.0.7 across affected packages: plotai.
What version fixes CVE-2025-1497?
Upgrading to 0.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is plotai affected?
Yes, plotai is affected in releases prior to 0.0.7. Upgrade your dependency to 0.0.7 or later.
What is the CVSS score of CVE-2025-1497?
CVE-2025-1497 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-1497?
CVE-2025-1497 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check PyPI dependencies for CVE-2025-1497?
Run the dependency tree command: 'pip show plotai'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2hmp-5wqg-f24h",
  "modified" : "2025-10-03T13:26:29Z",
  "published" : "2025-03-10T15:30:47Z",
  "aliases" : [ "CVE-2025-1497" ],
  "summary" : "PlotAI eval vulnerability",
  "details" : "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. PlotAI commented out vulnerable line, further usage of the software requires uncommenting it and thus accepting the risk.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "plotai"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-1497"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mljar/plotai/commit/bdcfb13484f0b85703a4c1ddfd71cb21840e7fde"
  }, {
    "type" : "WEB",
    "url" : "https://cert.pl/en/posts/2025/03/CVE-2025-1497"
  }, {
    "type" : "WEB",
    "url" : "https://cert.pl/posts/2025/03/CVE-2025-1497"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mljar/plotai"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/plotai/PYSEC-2025-22.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77", "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-10T22:21:12Z",
    "nvd_published_at" : "2025-03-10T14:15:24Z"
  }
}