CVE-2026-66007
Datasets Path Traversal via Unsanitized file_name Metadata
- State
- Published
- Severity
- 6.9 Medium
- Published
- Jul 24, 2026
- Updated
- Oct 1, 2026
- Reserved
- Jul 23, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
datasetshuggingface |
|
References
- Researcher Disclosuretechnical-descriptionexploitissue-tracking
- Pull Requestissue-trackingpatch
- Patch Commitpatch
- https://www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadatathird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.