Browse / AI Framework and Platform Flaws / CVE-2024-2083
Directory traversal in zenml
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- zenml (PyPI)
- Gets past
- Path restriction
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS
- 37.2% chance of exploitation in 30 days
How it works, in short
The steps endpoint's logs URI accepts traversal sequences, letting callers read files outside the intended directory. (Our summary, written by a model. The source text is below.)
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-2083
- https://github.com/zenml-io/zenml/commit/00e934f33a243a554f5f65b80eefd5ea5117367b
- https://github.com/pypa/advisory-database/tree/main/vulns/zenml/PYSEC-2024-247.yaml
- https://github.com/zenml-io/zenml
- https://huntr.com/bounties/f24b2216-6a4b-42a1-becb-9b47e6cf117f
Source: GitHub Advisory Database, used under CC BY 4.0.