CVE-2026-66007
published medium CVSS 4.0 · 6.9Datasets Path Traversal via Unsanitized file_name Metadata
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| huggingface | — | datasets0 through 5.0.0 (affected · semver) · f989ef9b4cc6c0039a7a82458eebca49e2b58b4b (unaffected · git) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| huggingface | datasets | 0 through 5.0.0 (affected · semver)f989ef9b4cc6c0039a7a82458eebca49e2b58b4b (unaffected · git)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
4- Patch Commit https://github.com/huggingface/datasets/commit/f989ef9b4cc6c0039a7a82458eebca49e2b58b4b
- Researcher Disclosure https://github.com/huggingface/datasets/issues/8324
- Pull Request https://github.com/huggingface/datasets/pull/8325
- https://www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadata
Provider assertions
2VulnCheck · cna
Datasets Path Traversal via Unsanitized file_name Metadata
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9f6f5fba0e0bdc1b7f4ea68196fc5ec2e665cab2c2c4379825ab07e8ede97c0c
- Ingested
- 01 Oct 2026, 18:31:22 UTC
- Source record
- Official CVE record