CVE-2026-57845
Hugging Face Datasets through 5.1.0 contains an insecure …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/SaiTeja-Erukude/CVE-2026-57845-hf-datasets-rce
- github.com/huggingface/datasets/pull/8879
- www.vulncheck.com/advisories/hugging-face-datasets-pickle-deserialization-rce-via-pandas-b
- github.com/huggingface/datasets/releases/tag/5.2.0
- nvd.nist.gov/vuln/detail/CVE-2026-57845
- cve.org/CVERecord?id=CVE-2026-57845
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.