CVE-2025-8406: ZenML is vulnerable to Path Traversal through its `PathMaterializer` class
ZenML version 0.83.1 is affected by a path traversal vulnerability in the PathMaterializer class. The load function uses ispathwithindirectory to validate files during data.tar.gz extraction, which fails to effectively detect symbolic and hard links. This vulnerability can lead to arbitrary file writes, potentially resulting in arbitrary command execution if critical files are overwritten.
Published Oct 5, 2025 · Updated Oct 7, 2025
Affected packages
zenml
- Ecosystem
- PyPI
- Affected
- >= 0.81.0, < 0.84.2
- Fixed in
- 0.84.2
- Check
pip show zenml
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
ZenML version 0.83.1 is affected by a path traversal vulnerability in the PathMaterializer class. The load function uses is_path_within_directory to validate files during data.tar.gz extraction, which fails to effectively detect symbolic and hard links. This vulnerability can lead to arbitrary file writes, potentially resulting in arbitrary command execution if critical files are overwritten.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2024-9340
ZenML unauthenticated DoS via Multipart Boundry
high7.5Mar 20, 2025CVE-2024-4311
Missing ratelimit on passwrod resets in zenml
medium5.4Nov 14, 2024CVE-2024-5062
Reflected Cross-Site Scripting (XSS) in zenml
medium6.1Jun 30, 2024CVE-2024-4460
Improper line feed handling in zenml
medium4.3Jun 24, 2024CVE-2024-4680
zenml-io/zenml does not expire the session after password reset
low3.9No fixJun 8, 2024CVE-2024-2032
Race condition in zenml
low3.1Jun 6, 2024
