CVE-2026-57845Hugging Face Datasets < 5.2.0 Pickle Deserialization RCE via Pandas Builder
Description
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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| huggingface | datasets | ≤ 5.1.0, fixed 5.2.0 |
References and patches
- Researcher Disclosure technical-descriptionexploit
- Release Notes release-notes
- Pull Request patchissue-tracking
- VulnCheck Advisory: Hugging Face Datasets 5.1.0 Pickle Deserialization RCE via Pandas Builder third-party-advisory