{"id":"CVE-2026-66007","revision":"6653846008e846b5ad84875f5fe9e2d6","records":[{"revision":"6653846008e846b5ad84875f5fe9e2d6","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-66007","aliases":[],"title":"Datasets Path Traversal via Unsanitized file_name Metadata","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.","state":0,"publishedAt":"2026-07-24T14:58:10.035+00:00","modifiedAt":"2026-10-01T15:20:14.881+00:00","affected":[{"ecosystem":"Vendor product","name":"datasets","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"huggingface\",\n                    \"product\": \"datasets\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:pypi/datasets\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThanOrEqual\": \"5.0.0\"\n                        },\n                        {\n                            \"status\": \"unaffected\",\n                            \"version\": \"f989ef9b4cc6c0039a7a82458eebca49e2b58b4b\",\n                            \"versionType\": \"git\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/huggingface/datasets\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":6.9,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/huggingface/datasets/issues/8324","https://github.com/huggingface/datasets/pull/8325","https://github.com/huggingface/datasets/commit/f989ef9b4cc6c0039a7a82458eebca49e2b58b4b","https://www.vulncheck.com/advisories/datasets-path-traversal-via-unsanitized-file-name-metadata"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-66007","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-66007","identifiers":["CVE-2026-66007"]},"retained":false,"historicalAffected":[]}],"coverage":[]}