← Back to search

CVE-2026-57845

8.8 HIGHpublic exploit available

Published 2026-10-23 · Updated 2026-10-29

AI risk analysis

Summary
Hugging Face Datasets through 5.1.0 allows arbitrary code execution via insecure deserialization of malicious pickle files when using the deprecated pandas builder, as load_dataset() calls pandas.read_pickle() without validation.
Exploitability
Exploitation requires the attacker to trick a victim into loading a specially crafted dataset from an untrusted source (e.g., via social engineering or compromised repository), and the victim must use the deprecated 'pandas' builder with data_files pointing to the malicious pickle.
Blast radius
Successful exploitation grants full process privileges, enabling data theft, lateral movement, or infrastructure compromise within the victim's environment.
Detection
Monitor for calls to datasets.load_dataset() with builder='pandas' and data_files pointing to external or user-supplied pickle files; log such usage attempts and flag any execution of subprocesses, network connections, or file writes initiated during dataset loading. No reliable host or network indicator is derivable from the published description if the victim process does not log these calls or generate audit trails.
Prioritized remediation
Upgrade to Hugging Face Datasets version 5.2.0 or later, which removes support for the vulnerable pandas builder and disables pickle deserialization by default.
rcedeserializationpickleinsecure-builderweb

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-502

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.