home / blog

2026-11-09 · high

CVE-2026-57845: RCE in Hugging Face Datasets via pickle

RCE flaw in Hugging Face Datasets ≤5.1.0 via pickle file crafting in deprecated pandas builder. CVSS 8.8 high.

CVE-2026-57845: RCE in Hugging Face Datasets via pickle

CVE-2026-57845 is an unsafe deserialization vulnerability in the deprecated pandas packaged builder of Hugging Face Datasets ≤5.1.0. When a team loads a dataset via datasets.load_dataset("pandas", data_files=...) with a maliciously crafted pickle file, the __reduce__ payload executes arbitrary code with the privileges of the victim Python process. The lack of validation on pickle files is the primary attack vector.

CVSS 8.8 (high). The vulnerability is confirmed by NVD as of 2026-10-23. Recent signals from GitHub security scanners (2026-11-09) confirm the issue is current: public repositories already analyze the risk of unsafe deserialization in Hugging Face Datasets, indicating awareness and timeliness of the threat in ML engineering environments.

IT and data science teams must immediately verify which version of Hugging Face Datasets is in use across containers, notebooks, and training pipelines. If version ≤5.1.0, update with priority and disable the pandas packaged builder. Do not load pickle datasets from untrusted sources. Monitor Python processes for anomalous activity during load_dataset() and verify input file integrity using security scanners dedicated to unsafe deserialization patterns.

At a glance

What
Unsafe pickle deserialization in Hugging Face Datasets ≤5.1.0. The pandas packaged builder does not validate pickle files, allowing arbitrary code execution via __reduce__ payload when datasets.load_dataset("pandas", data_files=...) loads a malicious dataset.
Severity
CVSS 8.8 (high). Arbitrary code execution with victim process privileges.
Affected versions
Hugging Face Datasets through 5.1.0 (deprecated pandas packaged builder).
Fix
Not reported in official data. Update to latest version and avoid deprecated pandas packaged builder.
Status
Published NVD 2026-10-23. Security scanner signals from GitHub (2026-11-09).
Action
Check Hugging Face Datasets version in data science environments. Update immediately if ≤5.1.0. Validate input from untrusted datasets. Monitor ML workloads for suspicious activity.

Sources: NVD, CVE-2026-57845

← All articles