{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "5.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "original_tag": "5.2.0",
                "range": [
                  {
                    "fixed": "e45c5b38100d0a39f7d29e31431075051b97485b"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e45c5b38100d0a39f7d29e31431075051b97485b"
            }
          ],
          "repo": "https://github.com/huggingface/datasets",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-502"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57845.json"
  },
  "details": "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.",
  "id": "CVE-2026-57845",
  "modified": "2026-11-16T10:30:52.892189558Z",
  "published": "2026-10-23T15:14:20.497Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57845.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/huggingface/datasets/releases/tag/5.2.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-57845"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/hugging-face-datasets-pickle-deserialization-rce-via-pandas-builder"
    },
    {
      "type": "FIX",
      "url": "https://github.com/huggingface/datasets/pull/8879"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/huggingface/datasets"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/SaiTeja-Erukude/CVE-2026-57845-hf-datasets-rce"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hugging Face Datasets \u003c 5.2.0 Pickle Deserialization RCE via Pandas Builder"
}