CVE-2025-8406
JSON

6.3medium

Path Traversal in zenml-io/zenml

Severity
6.3medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.33% (higher than 19% of CVEs)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-q92x-2x5g-h365PYSEC-2026-2071

Description

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.

Affected

Product or packageVersionsReported by
zenml-io zenml-io/zenmlfrom unspecified before 0.84.2CVE List
zenml (PyPI)from 0.81.0 before 0.84.2GitHub Advisory Database, PyPA Advisory Database
zenml zenmlfrom 0.83.1 before 0.84.2NVD

All scores

@huntr_ai6.3medium CVSS:3.0CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
GitHub6.3medium CVSS:3.0CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database6.3medium CVSS:3.0CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

La versión 0.83.1 de ZenML está afectada por una vulnerabilidad de salto de ruta en la clase PathMaterializer. La función load utiliza is_path_within_directory para validar archivos durante la extracción de data.tar.gz, lo que no logra detectar eficazmente enlaces simbólicos y duros. Esta vulnerabilidad puede conducir a escrituras de archivos arbitrarias, lo que podría resultar en la ejecución de comandos arbitrarios si se sobrescriben archivos críticos.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-8406 changed 2025-10-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-q92x-2x5g-h365 changed 2026-07-07CC-BY-4.0
NVDCVE-2025-8406 changed 2026-10-19Public domain
PyPA Advisory DatabasePYSEC-2026-2071 changed 2026-07-07CC-BY-4.0