Deserialization in Huggingface Datasets
CVE-2026-57845
Hugging Face Datasets through 5.1.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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/SaiTeja-Erukude/CVE-2026-57845-hf-datasets-rce (technical-description, exploit)
- github.com/huggingface/datasets/pull/8879 (patch)
- www.vulncheck.com/advisories/hugging-face-datasets-pickle-deserialization-rce-v… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-57845?
- CVE-2026-57845 is a high-severity vulnerability in Huggingface Datasets, classified under Deserialization of Untrusted Data. CVSS score: 8.8/10. Published 2026-10-23.
- How severe is CVE-2026-57845?
- High severity. CVSS v3 base score is 8.8 out of 10.