ZenML is vulnerable to Path Traversal through its `PathMaterializer` class
CVE-2025-8406 · GHSA-q92x-2x5g-h365 · published 2025-10-05 · updated 2025-10-07
- Severity
- Medium
- CVSS score
- 6.3
- Chance of exploitation (EPSS)
- 0.36%
- Fixed in
- 0.84.2
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
ZenML version 0.83.1 is affected by a path traversal vulnerability in the PathMaterializer class. The load function uses ispathwithin_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.
Upgrade zenml to 0.84.2 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| zenml | PyPI | >= 0.81.0, < 0.84.2 | 0.84.2 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalDirectory traversal in zenmlzenml
- HighZenML unauthenticated DoS via Multipart Boundryzenml
- HighZenML Server Remote Privilege Escalation Vulnerabilityzenml, zenml, zenml, zenml
- MediumMissing ratelimit on passwrod resets in zenmlzenml
- MediumReflected Cross-Site Scripting (XSS) in zenmlzenml
- MediumImproper line feed handling in zenmlzenml
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.