# CVE-2025-8406: Path Traversal in zenml-io/zenml

- Severity: Medium 6.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 19% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-05T09:00:36.838Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-q92x-2x5g-h365, PYSEC-2026-2071
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- zenml-io zenml-io/zenml: from unspecified before 0.84.2
- zenml (PyPI): from 0.81.0 before 0.84.2
- zenml zenml: from 0.83.1 before 0.84.2

## Every score

- @huntr_ai: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/a0880d64-9928-45bf-9663-2cd81582d9e7> (exploit, third-party-advisory, web)
- <https://github.com/zenml-io/zenml/commit/5d22a48d7bf6c7f10b748577c2be79cc7969d398> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8406> (advisory)
- <https://github.com/zenml-io/zenml> (package)
- <https://pypi.org/project/zenml> (package)
- <https://github.com/advisories/GHSA-q92x-2x5g-h365> (advisory)

## Sources

- CVE List: [CVE-2025-8406](https://www.cve.org/CVERecord?id=CVE-2025-8406), CVE Terms of Use, modified 2025-10-06
- GitHub Advisory Database: [GHSA-q92x-2x5g-h365](https://github.com/advisories/GHSA-q92x-2x5g-h365), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-8406](https://nvd.nist.gov/vuln/detail/CVE-2025-8406), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-2071](https://osv.dev/vulnerability/PYSEC-2026-2071), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-8406 · Whole record: https://cve.day/CVE-2025-8406.json · Rebuilt by cve.day 2026-11-25T22:59:05.536Z
