{"id":"CVE-2026-66007","published":"2026-07-24T14:58:10Z","modified":"2026-10-01T15:20:14Z","title":"Datasets Path Traversal via Unsanitized file_name Metadata","vendor":"huggingface","product":"datasets","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0055,"percentile":0.46902,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/huggingface/datasets/issues/8324","tags":["technical-description","exploit","issue-tracking"]},{"url":"https://github.com/huggingface/datasets/pull/8325","tags":["issue-tracking","patch"]},{"url":"https://github.com/huggingface/datasets/commit/f989ef9b4cc6c0039a7a82458eebca49e2b58b4b","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadata","tags":["third-party-advisory"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":9.38},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"datasets","versions":["<= 5.0.0"]}],"fixedVersions":[{"vendor":"huggingface","product":"datasets","versions":["f989ef9b4cc6c0039a7a82458eebca49e2b58b4b"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-24T15:18:39.129173Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"datasets","vulnerableRanges":["<5.0.1"],"patched":["5.0.1"],"from":["GHSA-379c-qx7v-6h59","PYSEC-2026-3716"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal vulnerability in the folder-based dataset builders of Hugging Face's datasets library, where the file_name metadata field is not validated before being joined to the dataset directory. An attacker can supply crafted file_name values containing directory traversal sequences to read arbitrary local files over the network without authentication, but only if a user takes action (such as opening or processing the attacker-supplied dataset), with the file contents then embedded into output when save_to_disk or push_to_hub is called.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:36Z"},"euvd":{"id":"EUVD-2026-48613","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/huggingface/datasets/issues/8324"]}