CVE-2026-66007 PUBLISHED

Datasets Path Traversal via Unsanitized file_name Metadata

Assigner: VulnCheck
Reserved: 23.07.2026 Published: 24.07.2026 Updated: 24.07.2026

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.

Metrics

CVSS 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
CVSS Score: 6.9

Product Status

Vendor huggingface
Product datasets
Versions Default: unaffected
  • affected from 0 to 5.0.0 (incl.)
  • Version f989ef9b4cc6c0039a7a82458eebca49e2b58b4b is unaffected

Credits

  • George Chen finder

References

Problem Types

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE