CVE-2024-4680: Zenml Zenml-io/zenml Does Not Expire The Vulnerability

LOW
Advisory Identifier: GHSA-99hm-86h7-gr3g
CVSS 3.9
CWE-613
Published
Advisory Summary

CVE-2024-4680 is a LOW (CVSS 3.9) zenml-io/zenml does not expire the vulnerability (CWE-613: Insufficient Session Expiration) affecting Zenml libraries in the PyPI ecosystem. The issue involves zenml-io/zenml does not expire the session after password reset. Remediation is available in the latest vendor maintenance releases.

CVE-2024-4680 at a Glance

CVE Identifier CVE-2024-4680
GHSA Identifier GHSA-99hm-86h7-gr3g
Severity LOW
CVSS v3.1 Base Score 3.9
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Zenml
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.9

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

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

How to Fix CVE-2024-4680

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: Latest secure release
pip install zenml>=Latest secure release
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-4680, 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 the patched release), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". 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 vulnerability in zenml-io/zenml version 0.56.3 allows attackers to reuse old session credentials or session IDs due to insufficient session expiration. Specifically, the session does not expire after a password change, enabling an attacker to maintain access to a compromised account without the victim's ability to revoke this access. This issue was observed in a self-hosted ZenML deployment via Docker, where after changing the password from one browser, the session remained active and usable in another browser without requiring re-authentication.

CVE-2024-4680 Affected Zenml Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
zenml
PyPI
≤ 0.56.3

References

Frequently Asked Questions

What is CVE-2024-4680?
CVE-2024-4680 is a security vulnerability in Zenml involving zenml-io/zenml does not expire the session after password reset under CWE-613: Insufficient Session Expiration.
Which Zenml versions are affected?
Affected versions include releases prior to current release patches across affected packages: zenml.
What version fixes CVE-2024-4680?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is zenml affected?
Yes, zenml is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-4680?
CVE-2024-4680 has a CVSS v3.1 base score of 3.9 (LOW) with vector string CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-4680?
CVE-2024-4680 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check PyPI dependencies for CVE-2024-4680?
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-99hm-86h7-gr3g",
  "modified" : "2024-07-22T13:16:40Z",
  "published" : "2024-06-08T21:30:38Z",
  "aliases" : [ "CVE-2024-4680" ],
  "summary" : "zenml-io/zenml does not expire the session after password reset",
  "details" : "A vulnerability in zenml-io/zenml version 0.56.3 allows attackers to reuse old session credentials or session IDs due to insufficient session expiration. Specifically, the session does not expire after a password change, enabling an attacker to maintain access to a compromised account without the victim's ability to revoke this access. This issue was observed in a self-hosted ZenML deployment via Docker, where after changing the password from one browser, the session remained active and usable in another browser without requiring re-authentication.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zenml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.56.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-4680"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zenml-io/zenml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/c88f6bd2-490d-4930-98dd-03651b20230a"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-10T18:36:32Z",
    "nvd_published_at" : "2024-06-08T20:15:52Z"
  }
}