CVE-2026-66007: Datasets Path Traversal via Unsanitized file_name Metadata
Medium · CVSS 6.5 (CVSS 3.1)EPSS 0.55%, 46th percentilePublished Updated Assigner: VulnCheck
Description
Datasets through 5.0.0, fixed in commit f989ef9, contains a path traversal vulnerability in folder-based dataset builders where the file_name metadata field is not properly validated before being joined to the dataset directory. Attackers can supply crafted file_name values with directory traversal sequences to read arbitrary local files, which are then embedded into output when save_to_disk or push_to_hub is called.
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N · CWE-22
Tracked companies
Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
huggingface: datasets
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- github.com/huggingface/datasets/commit/f989ef9b4cc6c0039a7a82458eebca49e2b58b4b (opens in new tab)
- github.com/huggingface/datasets/issues/8324 (opens in new tab)
- github.com/huggingface/datasets/pull/8325 (opens in new tab)
- www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadata (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)