Hugging Face Datasets path traversal vulnerability
Start here
Hugging Face Datasets 5.0.0 and earlier versions have a path traversal vulnerability, fixed in commit f989ef9. The issue is that the folder-based dataset builder does not sufficiently validate the file_name metadata field before concatenating it directly with the dataset directory. An attacker can construct a file_name value with directory traversal sequences to read arbitrary local files, which are written into the output content when save_to_disk or push_to_hub is called.
Generated by AI from reports · Updated 5 days ago
Progress timeline
- GitHub 安全公告Hugging Face Datasets folder-based builder has a path traversal vulnerability
Hugging Face Datasets 5.0.0 and earlier versions have a path traversal vulnerability, fixed in commit f989ef9. The issue is that the folder-based dataset builder does not sufficiently validate the file_name metadata field before concatenating it directly with the dataset directory. An attacker can construct a file_name value with directory traversal sequences to read arbitrary local files, which are written into the output content when save_to_disk or push_to_hub is called.
Related discussion
Attention trend
New sources per day
- Oct 3: 1 new sources (1 outlets, 0 accounts)
- Oct 4: 0 new sources (0 outlets, 0 accounts)
- Oct 5: 0 new sources (0 outlets, 0 accounts)
- Oct 6: 0 new sources (0 outlets, 0 accounts)
- Oct 7: 0 new sources (0 outlets, 0 accounts)
- Oct 8: 0 new sources (0 outlets, 0 accounts)
- Oct 9: 0 new sources (0 outlets, 0 accounts)
- Oct 10: 0 new sources (0 outlets, 0 accounts)
- Oct 11: 0 new sources (0 outlets, 0 accounts)
- Oct 12: 0 new sources (0 outlets, 0 accounts)
- Oct 13: 0 new sources (0 outlets, 0 accounts)
- Oct 14: 0 new sources (0 outlets, 0 accounts)