CVE-2026-57845
8.7high
Hugging Face Datasets < 5.2.0 Pickle Deserialization RCE via Pandas Builder
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.60% (higher than 50% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| huggingface datasets | up to 5.1.0 Not affected: 5.2.0 | CVE List |
All scores
| VulnCheck | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
References
| https://github.com/SaiTeja-Erukude/CVE-2026-57845-hf-datasets-rce | exploit, technical-description | |
| https://github.com/huggingface/datasets/releases/tag/5.2.0 | release-notes | |
| https://github.com/huggingface/datasets/pull/8879 | issue-tracking, patch | |
| https://www.vulncheck.com/advisories/hugging-face-datasets-pickle-deserialization-rce-via-pandas-builder | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-57845 changed 2026-11-12 | CVE Terms of Use |
| NVD | CVE-2026-57845 changed 2026-11-12 | Public domain |