CVE-2026-57845: Hugging Face Datasets 5.1.0 Pickle Deserialization RCE via Pandas Builder
Description
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.
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · CWE-502
Tracked companies
Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
huggingface: datasets
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- github.com/huggingface/datasets/pull/8879 (opens in new tab)
- github.com/SaiTeja-Erukude/CVE-2026-57845-hf-datasets-rce (opens in new tab)
- www.vulncheck.com/advisories/hugging-face-datasets-pickle-deserialization-rce-via-panda… (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)