Hugging Face Datasets through 5.1.0 Pickle Deserialization RCE via Pandas Builder
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-57845
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 03:05 UTC · Revision 1
Source evidence
Hugging Face Datasets through 5.1.0 Pickle Deserialization RCE via Pandas Builder
core-osv · Original sourcePublished 23 Oct 2026, 15:14 UTC
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.
osv:CVE-2026-57845
Complete source record
{
"id": "15a28e84b1d65f1d074d5e534bea9f199c4eb2f73c9037343e649249adb5c7bf",
"url": "https://osv.dev/vulnerability/CVE-2026-57845",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Hugging Face Datasets through 5.1.0 Pickle Deserialization RCE via Pandas Builder",
"summary": "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.",
"evidence": "osv:CVE-2026-57845",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-57845",
"aliases": [
"CVE-2026-57845"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/huggingface/datasets",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "efe6ea4f88260b1a5066f28a9c90d82365a29f42"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.1.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.1.0"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"5.1.0",
"5.0.1",
"5.0.0",
"4.8.5",
"4.8.4",
"4.8.3",
"4.8.2",
"4.8.1",
"4.8.0",
"4.7.0",
"4.6.1",
"4.6.0",
"4.5.0",
"3.6.0",
"4.4.2",
"4.4.1",
"4.4.0",
"4.3.0",
"4.2.0",
"4.1.1",
"4.1.0",
"4.0.0",
"3.5.1",
"3.5.0",
"3.4.1",
"3.4.0",
"3.3.2",
"3.3.1",
"3.3.0",
"3.2.0",
"3.1.0",
"3.0.2",
"3.0.1",
"3.0.0",
"2.20.0",
"2.19.0",
"2.18.0",
"2.17.1",
"2.17.0",
"2.16.1",
"2.16.0",
"2.15.0",
"2.13.1",
"2.14.1",
"2.14.0",
"2.13.0",
"2.12.0",
"2.11.0",
"2.10.0",
"2.9.0",
"2.8.0",
"2.6.1",
"2.7.0",
"2.6.0",
"2.5.1",
"2.5.0",
"2.4.0",
"2.3.2",
"2.3.1",
"2.3.0",
"2.2.2",
"2.2.1",
"2.2.0",
"2.1.0",
"2.0.0",
"1.18.3",
"1.18.2",
"1.18.1",
"1.18.0",
"1.17.0",
"1.16.1",
"1.16.0",
"1.15.1",
"1.15.0",
"1.14.0",
"1.13.3",
"1.13.2",
"1.13.1",
"1.13.0",
"1.12.1",
"1.12.0",
"1.11.0",
"1.10.2",
"1.10.1",
"1.10.0",
"1.9.0",
"1.8.0",
"1.7.0",
"1.6.2",
"1.6.1",
"1.6.0",
"1.5.0",
"1.4.1",
"1.4.0",
"1.3.0",
"1.2.1",
"1.2.0",
"1.1.3",
"1.1.2",
"1.1.1",
"1.1.0",
"1.0.2",
"1.0.1",
"1.0.0",
"0.4.0",
"0.3.0",
"0.2.1",
"0.2.0",
"0.1.0",
"0.0.3",
"0.0.2",
"alpha"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57845.json"
}
}
],
"modified": "2026-10-31T02:30:30.737370425Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57845.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-57845",
"https://www.vulncheck.com/advisories/hugging-face-datasets-pickle-deserialization-rce-via-pandas-builder",
"https://github.com/huggingface/datasets/pull/8879",
"https://github.com/huggingface/datasets",
"https://github.com/SaiTeja-Erukude/CVE-2026-57845-hf-datasets-rce"
],
"provider_metadata": {
"cwe_ids": [
"CWE-502"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57845.json"
}
},
"related_cves": [
{
"value": "CVE-2026-57845",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492103,
"published_at": "2026-10-23T15:14:20.497+00:00"
}