CVE-2024-2035: Zenml Improper Authorization Vulnerability

MODERATE
Advisory Identifier: GHSA-9x88-4jg8-4vf7
CVSS 6.5
CWE-1220 CWE-862
Published
Advisory Summary

CVE-2024-2035 is a MODERATE (CVSS 6.5) improper authorization vulnerability (CWE-1220: Insufficient Granularity of Access Control) affecting Zenml libraries in the PyPI ecosystem. The issue involves improper authorization in zenml. Remediation is available by upgrading affected packages to version 0.56.2.

CVE-2024-2035 at a Glance

CVE Identifier CVE-2024-2035
GHSA Identifier GHSA-9x88-4jg8-4vf7
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-1220: Insufficient Granularity of 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.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H).

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

How to Fix CVE-2024-2035

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-2035, 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-1220: Insufficient Granularity of Access Control, where the product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. however, implemented access controls lack required granularity, which renders the control policy too broad because it allows accesses from unauthorized agents to the security-sensitive assets. 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

An improper authorization vulnerability exists in the zenml-io/zenml repository, specifically within the API PUT /api/v1/users/id endpoint. This vulnerability allows any authenticated user to modify the information of other users, including changing the `active` status of user accounts to false, effectively deactivating them. This issue affects version 0.55.3 and was fixed in version 0.56.2. The impact of this vulnerability is significant as it allows for the deactivation of admin accounts, potentially disrupting the functionality and security of the application.

CVE-2024-2035 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-2035?
CVE-2024-2035 is a security vulnerability in Zenml involving Improper authorization in zenml under CWE-1220: Insufficient Granularity of Access Control.
Which Zenml versions are affected?
Affected versions include releases prior to 0.56.2 across affected packages: zenml.
What version fixes CVE-2024-2035?
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-2035?
CVE-2024-2035 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2024-2035?
CVE-2024-2035 is classified under CWE-1220: Insufficient Granularity of Access Control (The product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. However, implemented access controls lack required granularity, which renders the control policy too broad because it allows accesses from unauthorized agents to the security-sensitive assets.).
How can I check PyPI dependencies for CVE-2024-2035?
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-9x88-4jg8-4vf7",
  "modified" : "2025-10-15T15:49:21Z",
  "published" : "2024-06-06T21:30:36Z",
  "aliases" : [ "CVE-2024-2035" ],
  "summary" : "Improper authorization in zenml",
  "details" : "An improper authorization vulnerability exists in the zenml-io/zenml repository, specifically within the API PUT /api/v1/users/id endpoint. This vulnerability allows any authenticated user to modify the information of other users, including changing the `active` status of user accounts to false, effectively deactivating them. This issue affects version 0.55.3 and was fixed in version 0.56.2. The impact of this vulnerability is significant as it allows for the deactivation of admin accounts, potentially disrupting the functionality and security of the application.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H"
  } ],
  "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-2035"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zenml-io/zenml/commit/b95f083efffa56831cd41d8ed536aeb0b6038fa3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/zenml/PYSEC-2024-169.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zenml-io/zenml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/1cfc6493-082e-4229-9f2f-496801a6557c"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1220", "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-06T22:21:21Z",
    "nvd_published_at" : "2024-06-06T19:15:53Z"
  }
}