CVE-2026-57845: Hugging Face Datasets 5.1.0 Pickle Deserialization RCE via Pandas Builder

Published Oct 23, 2026
·
Updated

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.generatetables via pandas.readpickle() without validation, so when a victim calls datasets.loaddataset("pandas", datafiles=...), the embedded reduce payload executes code with the victim process's privileges.

Affected Software

1 affected component
Hugging Face Datasets<=5.1.0

Event History

Oct 23, 2026
CVE Published
via MITRE·03:14 PM
Data Sourced
via MITRE·03:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this vulnerability?

Python processes using Hugging Face Datasets through version 5.1.0 are exposed when they load attacker-controlled or otherwise untrusted pickle-backed dataset files through the deprecated pandas packaged builder.

2

What must an attacker provide to trigger code execution?

The attacker must persuade a victim to call datasets.load_dataset("pandas", data_files=...) on a crafted pickle file. The file can contain a malicious __reduce__ payload that executes when pandas.read_pickle() is reached through Pandas._generate_tables.

3

Does exploitation require authentication or elevated privileges?

No authentication or pre-existing privileges are required according to the supplied severity vector. Exploitation does require user interaction: a victim must load the malicious dataset, and code runs with that victim process's privileges.

4

What can be done if patching is not immediately possible?

Do not use the deprecated pandas packaged builder to load pickle-backed datasets from untrusted sources. Treat pickle files as executable content and only load files whose provenance and integrity are trusted.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203