CVE-2026-57845

Hugging Face Datasets < 5.2.0 Pickle Deserialization RCE via Pandas Builder

Published Oct 23, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Hugging Face Datasets before 5.2.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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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. Hugging Face Datasets before 5.2.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.
Title Hugging Face Datasets through 5.1.0 Pickle Deserialization RCE via Pandas Builder Hugging Face Datasets < 5.2.0 Pickle Deserialization RCE via Pandas Builder
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:huggingface:datasets:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Title Hugging Face Datasets 5.1.0 Pickle Deserialization RCE via Pandas Builder Hugging Face Datasets through 5.1.0 Pickle Deserialization RCE via Pandas Builder
Type Values Removed Values Added
First Time appeared Huggingface
Huggingface datasets
Vendors & Products Huggingface
Huggingface datasets
Type Values Removed Values Added
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.
Title Hugging Face Datasets 5.1.0 Pickle Deserialization RCE via Pandas Builder
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 12, 2026, 6:48 PM
Reserved
Jun 25, 2026, 6:48 PM
Status
Awaiting Analysis
Published
Oct 23, 2026, 4:16 PM
Modified
Nov 12, 2026, 7:17 PM
Severity
Important
Public date
Oct 23, 2026, 3:14 PM