CVE-2024-2260: Zenml Zenml Session Fixation Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-g3r5-72hf-p7p2
CVSS 4.2
CWE-384
Published
Advisory Summary

CVE-2024-2260 is a MODERATE (CVSS 4.2) zenml session fixation vulnerability vulnerability (CWE-384: Session Fixation) affecting Zenml libraries in the PyPI ecosystem. The issue involves zenml session fixation vulnerability. Remediation is available by upgrading affected packages to version 0.56.2.

CVE-2024-2260 at a Glance

CVE Identifier CVE-2024-2260
GHSA Identifier GHSA-g3r5-72hf-p7p2
Severity MODERATE
CVSS v3.1 Base Score 4.2
CWE Classification CWE-384: Session Fixation
Affected Product Zenml
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.2

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

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

How to Fix CVE-2024-2260

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.56.2
pip install zenml>=0.56.2
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-2260, 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.56.2), 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-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. 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 session fixation vulnerability exists in the zenml-io/zenml application, where JWT tokens used for user authentication are not invalidated upon logout. This flaw allows an attacker to bypass authentication mechanisms by reusing a victim's JWT token.

CVE-2024-2260 Affected Zenml Versions

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

References

Frequently Asked Questions

What is CVE-2024-2260?
CVE-2024-2260 is a security vulnerability in Zenml involving zenml Session Fixation vulnerability under CWE-384: Session Fixation.
Which Zenml versions are affected?
Affected versions include releases prior to 0.56.2 across affected packages: zenml.
What version fixes CVE-2024-2260?
Upgrading to 0.56.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zenml affected?
Yes, zenml is affected in releases prior to 0.56.2. Upgrade your dependency to 0.56.2 or later.
What is the CVSS score of CVE-2024-2260?
CVE-2024-2260 has a CVSS v3.1 base score of 4.2 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-2260?
CVE-2024-2260 is classified under CWE-384: Session Fixation (Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.).
How can I check PyPI dependencies for CVE-2024-2260?
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-g3r5-72hf-p7p2",
  "modified" : "2025-06-13T04:12:39Z",
  "published" : "2024-04-16T00:30:33Z",
  "aliases" : [ "CVE-2024-2260" ],
  "summary" : "zenml Session Fixation vulnerability",
  "details" : "A session fixation vulnerability exists in the zenml-io/zenml application, where JWT tokens used for user authentication are not invalidated upon logout. This flaw allows an attacker to bypass authentication mechanisms by reusing a victim's JWT token.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zenml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.56.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-2260"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zenml-io/zenml/commit/68bcb3ba60cba9729c9713a49c39502d40fb945e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/zenml/PYSEC-2024-254.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zenml-io/zenml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/2d0856ec-ed73-477a-8ea2-d5d4f15cf167"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-16T18:23:34Z",
    "nvd_published_at" : "2024-04-16T00:15:11Z"
  }
}