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.
Details
CVE ID
CVE-2026-66007
Published / updated
24 Jul 2026, 15:19 UTC · last modified 24 Oct 2026, 13:10 UTC
Severity
MEDIUM
CVSS score
6.5 · v3.1 ·
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N · Attack vector: NetworkAffected vendor
Affected products
Datasets
Affected versions
Datasets: ≤ 5.0.0
Fixed versions
Not stated in the data. Check the vendor advisory.
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.55% probability of exploitation in the next 30 days · 47% percentile (02 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
disclosure@vulncheck.com
References (4)
| https://github.com/huggingface/datasets/issues/8324 | ExploitIssue TrackingVendor Advisory |
| https://github.com/huggingface/datasets/commit/f989ef9b4cc6c0039a7a82458eebca49e2b58b4b | Patch |
| https://github.com/huggingface/datasets/pull/8325 | Issue TrackingPatch |
| https://www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadata | ExploitPatchThird Party Advisory |
AI plain-English explainer
A short explanation of who is affected, the impact and what to do, written only from this record's data.
AI isn't configured on this server (set AI_PROVIDER and an API key).
Learn about this vulnerability
CVSS vs EPSS vs CISA KEV: Understanding the DifferencesThree signals, three different questions. CVSS measures how bad a flaw could be, EPSS estimates how likely exploitation is, and KEV confirms attackers are already using it.Intermediate · 4-minute readWhat Is a CVE? A Beginner's Guide to VulnerabilitiesCVE IDs are the common names for publicly known security flaws. Learn who assigns them, what a CVE record contains, and what a CVE does and doesn't tell you.Beginner · 4-minute readHow to Check Whether Your Software Version Is Affected by a CVEA version match is a starting point, not a verdict. A step-by-step method to confirm exposure using advisories, version ranges and backport notes.Intermediate · 4-minute readTrack this software
Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.
+ Huggingface Datasets