Datasets
Hugging Face Datasets < 5.2.0 Pickle Deserialization RCE via Pandas Builder
Hugging Face Datasets before 5.2.0 contains an insecure deserialization vulnerability that allows attackers to execute arbitrary Python code by crafting a malicious pickle file loaded through the deprecated pandas packaged builder. Attackers can supply a pickle-backed dataset that is processed by Pandas._generate_tables via pandas.read_pickle() without validation, so when a victim calls datasets.load_dataset("pandas", data_files=...), the embedded __reduce__ payload executes code with the victim process's privileges.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 5.1.0
Fixed in 5.2.0
Mitigation
Upgrade datasets to 5.2.0 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational · 1 suspicious or fake
Informational 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Sun-Wukhan/pickle-sentry | 9 Nov 2026 +17 d | 14 Nov 2026 | 0 | Informational · list |
Suspicious or fake 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| SaiTeja-Erukude/CVE-2026-57845-hf-datasets-rce | 23 Oct 2026 −14 h | 14 Nov 2026 | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.