CVE-2024-25723: Zenml ZenML Server Remote Privilege Escalation Vulnerability

HIGH
Advisory Identifier: GHSA-vf7j-cmrj-pmmm
CVSS 6.5
CWE-284
Published
Advisory Summary

CVE-2024-25723 is a HIGH (CVSS 6.5) zenml server remote privilege escalation vulnerability (CWE-284: Improper Access Control) affecting Zenml libraries in the PyPI ecosystem. The issue involves zenml server remote privilege escalation vulnerability. Remediation is available by upgrading affected packages to version 0.42.2, 0.43.1, 0.46.7, 0.44.4.

CVE-2024-25723 at a Glance

CVE Identifier CVE-2024-25723
GHSA Identifier GHSA-vf7j-cmrj-pmmm
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-284: Improper Access Control
Affected Product Zenml
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2024-25723

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.42.2
pip install zenml>=0.42.2
zenml fixed: 0.43.1
pip install zenml>=0.43.1
zenml fixed: 0.46.7
pip install zenml>=0.46.7
zenml fixed: 0.44.4
pip install zenml>=0.44.4
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-25723, 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.42.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. 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

ZenML Server in the ZenML package before 0.46.7 for Python allows remote privilege escalation because the `/api/v1/users/{user_name_or_id}/activate` REST API endpoint allows access on the basis of a valid username along with a new password in the request body. These are also patched versions: 0.44.4, 0.43.1, and 0.42.2.

CVE-2024-25723 Affected Zenml Versions

4 component(s)
Fixed Versions:
0.42.20.43.10.46.70.44.4
Product / Package Ecosystem Affected Versions Fixed Version
zenml
PyPI
< 0.42.2
0.42.2
zenml
PyPI
≥ 0.43.0
< 0.43.1
All 1 versions
0.43.0
0.43.1
zenml
PyPI
≥ 0.45.0
< 0.46.7
0.46.7
zenml
PyPI
≥ 0.44.0
< 0.44.4
0.44.4

References

Frequently Asked Questions

What is CVE-2024-25723?
CVE-2024-25723 is a security vulnerability in Zenml involving ZenML Server Remote Privilege Escalation Vulnerability under CWE-284: Improper Access Control.
Which Zenml versions are affected?
Affected versions include releases prior to 0.42.2, 0.43.1, 0.46.7, 0.44.4 across affected packages: zenml.
What version fixes CVE-2024-25723?
Upgrading to 0.42.2, 0.43.1, 0.46.7, 0.44.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zenml affected?
Yes, zenml is affected in releases prior to 0.42.2, 0.43.1, 0.46.7, 0.44.4. Upgrade your dependency to 0.42.2, 0.43.1, 0.46.7, 0.44.4 or later.
What is the CVSS score of CVE-2024-25723?
CVE-2024-25723 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-25723?
CVE-2024-25723 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2024-25723?
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-vf7j-cmrj-pmmm",
  "modified" : "2024-11-18T16:26:37Z",
  "published" : "2024-02-27T15:30:33Z",
  "aliases" : [ "CVE-2024-25723" ],
  "summary" : "ZenML Server Remote Privilege Escalation Vulnerability",
  "details" : "ZenML Server in the ZenML package before 0.46.7 for Python allows remote privilege escalation because the `/api/v1/users/{user_name_or_id}/activate` REST API endpoint allows access on the basis of a valid username along with a new password in the request body. These are also patched versions: 0.44.4, 0.43.1, and 0.42.2.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zenml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.42.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zenml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.43.0"
      }, {
        "fixed" : "0.43.1"
      } ]
    } ],
    "versions" : [ "0.43.0" ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zenml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.45.0"
      }, {
        "fixed" : "0.46.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zenml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.44.0"
      }, {
        "fixed" : "0.44.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25723"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zenml-io/zenml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zenml-io/zenml/compare/0.42.1...0.42.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zenml-io/zenml/compare/0.43.0...0.43.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zenml-io/zenml/compare/0.44.3...0.44.4"
  }, {
    "type" : "WEB",
    "url" : "https://www.zenml.io/blog/critical-security-update-for-zenml-users"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-27T21:54:56Z",
    "nvd_published_at" : "2024-02-27T15:15:07Z"
  }
}