CVE-2024-2083: Zenml Path Traversal Vulnerability

CRITICAL
Advisory Identifier: GHSA-6h3f-43vq-53hj
CVSS 9.9
CWE-29
Published
Advisory Summary

CVE-2024-2083 is a CRITICAL (CVSS 9.9) path traversal vulnerability (CWE-29: Path Traversal: '\..\filename') affecting Zenml libraries in the PyPI ecosystem. The issue involves directory traversal in zenml. Remediation is available by upgrading affected packages to version 0.55.5.

CVE-2024-2083 at a Glance

CVE Identifier CVE-2024-2083
GHSA Identifier GHSA-6h3f-43vq-53hj
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-29: Path Traversal: '\..\filename'
Affected Product Zenml
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.9

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

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

How to Fix CVE-2024-2083

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

zenml fixed: 0.55.5
pip install zenml>=0.55.5
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 zenml

How to Check if You Are Affected

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

pip show zenml

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-29: Path Traversal: '\..\filename', where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory. In Zenml, 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 directory traversal vulnerability exists in the zenml-io/zenml repository, specifically within the /api/v1/steps endpoint. Attackers can exploit this vulnerability by manipulating the 'logs' URI path in the request to fetch arbitrary file content, bypassing intended access restrictions. The vulnerability arises due to the lack of validation for directory traversal patterns, allowing attackers to access files outside of the restricted directory.

CVE-2024-2083 Affected Zenml Versions

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

References

Frequently Asked Questions

What is CVE-2024-2083?
CVE-2024-2083 is a security vulnerability in Zenml involving Directory traversal in zenml under CWE-29: Path Traversal: '\..\filename'.
Which Zenml versions are affected?
Affected versions include releases prior to 0.55.5 across affected packages: zenml.
What version fixes CVE-2024-2083?
Upgrading to 0.55.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zenml affected?
Yes, zenml is affected in releases prior to 0.55.5. Upgrade your dependency to 0.55.5 or later.
What is the CVSS score of CVE-2024-2083?
CVE-2024-2083 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-2083?
CVE-2024-2083 is classified under CWE-29: Path Traversal: '\..\filename' (The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory.).
How can I check PyPI dependencies for CVE-2024-2083?
Run the dependency tree command: 'pip show zenml'. 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-6h3f-43vq-53hj",
  "modified" : "2025-05-12T21:46:49Z",
  "published" : "2024-04-16T00:30:33Z",
  "aliases" : [ "CVE-2024-2083" ],
  "summary" : "Directory traversal in zenml",
  "details" : "A directory traversal vulnerability exists in the zenml-io/zenml repository, specifically within the /api/v1/steps endpoint. Attackers can exploit this vulnerability by manipulating the 'logs' URI path in the request to fetch arbitrary file content, bypassing intended access restrictions. The vulnerability arises due to the lack of validation for directory traversal patterns, allowing attackers to access files outside of the restricted directory.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zenml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.55.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-2083"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zenml-io/zenml/commit/00e934f33a243a554f5f65b80eefd5ea5117367b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/zenml/PYSEC-2024-247.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zenml-io/zenml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/f24b2216-6a4b-42a1-becb-9b47e6cf117f"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-29" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-16T18:22:20Z",
    "nvd_published_at" : "2024-04-16T00:15:11Z"
  }
}