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.
Published: 2026-10-23
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability in Hugging Face Datasets version 5.1.0 stems from insecure deserialization of pickle objects when using the deprecated pandas builder. This flaw allows an attacker to embed a malicious __reduce__ payload in a pickle file that is then processed by pandas.read_pickle() during the generation of tables. When a victim executes datasets.load_dataset("pandas", data_files=...), the embedded payload runs with the privileges of the victim process, leading to arbitrary Python code execution. The issue is a classic example of insecure deserialization (CWE‑502) and can be exploited without required authentication, as any user who loads a malicious dataset would be affected.

Affected Systems

Affected systems are installations of Hugging Face Datasets up to and including version 5.1.0. Any user who employs the deprecated pandas builder to load datasets from files that might originate from untrusted sources is at risk. The product is distributed by the huggingface organization.

Risk and Exploitability

The CVSS score of 8.7 signifies high impact, while an EPSS score is not available but the vulnerability was publicly reported, indicating potential exploitation tools may exist. The flaw is currently not listed in the CISA KEV catalog. Attackers can exploit the flaw by supplying a crafted pickle file to a victim application that calls load_dataset with the pandas builder. Because the deserialization step occurs in user code with minimal input validation, there is no barrier to execution, making the vulnerability exploitable in environments where the victim code runs with sufficient privileges.

Generated by OpenCVE AI on October 23, 2026 at 16:59 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Hugging Face Datasets library to a version newer than 5.1.0, which removes the insecure pandas builder deserialization logic.
  • If an upgrade is not possible, remove or comment out any usage of the pandas builder in your code and replace it with a safer data loading method.
  • Validate incoming pickle files or forbid pickles for untrusted data, ensuring that no malicious payload can be executed.
  • For critical systems, isolate dataset loading in a restricted environment or container to limit the impact of potential code execution.

Generated by OpenCVE AI on October 23, 2026 at 16:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 27 Oct 2026 10:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:huggingface:datasets:*:*:*:*:*:*:*:*

Mon, 26 Oct 2026 17:00:00 +0000

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

Sat, 24 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Fri, 23 Oct 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Huggingface
Huggingface datasets
Vendors & Products Huggingface
Huggingface datasets

Fri, 23 Oct 2026 15:30:00 +0000

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'}


Subscriptions

Huggingface Datasets
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-29T17:58:32.566Z

Reserved: 2026-06-25T18:48:00.281Z

Link: CVE-2026-57845

cve-icon Vulnrichment

Updated: 2026-10-29T17:58:26.156Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-23T16:16:52.000

Modified: 2026-10-29T18:17:33.640

Link: CVE-2026-57845

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-23T15:14:20Z

Links: CVE-2026-57845 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T23:00:13Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data