{
 "id": "AIR-2026-0558",
 "slug": "cve-2026-1839-huggingface-transformers-arbitrary-code-execut",
 "title": "CVE-2026-1839: HuggingFace Transformers Arbitrary Code Execution in Trainer",
 "summary": "The Trainer class in HuggingFace Transformers calls torch.load without weights_only=True, allowing arbitrary code execution. Attackers can exploit this via malicious checkpoint files.",
 "type": "attack_on_ai",
 "categories": [
  "infra_vuln",
  "supply_chain"
 ],
 "severity": 2,
 "targets": [
  "framework_or_tooling"
 ],
 "products": [
  "Transformers"
 ],
 "incident_date": "2026-04-07",
 "incident_date_precision": "day",
 "first_reported": "2026-04-07",
 "sources": [
  {
   "url": "https://github.com/advisories/GHSA-69w3-r845-3855",
   "publisher": "GitHub Advisory Database",
   "title": "CVE-2026-1839: HuggingFace Transformers allows for arbitrary code execution in the `Trainer` class",
   "published_at": "2026-04-07"
  }
 ],
 "source_count": 1,
 "confidence": 0.95,
 "status": "published",
 "origin": "seed_ghsa",
 "tags": [
  "CVE-2026-1839",
  "rce",
  "huggingface",
  "pytorch"
 ],
 "created_at": "2026-10-18T07:00:14.101Z",
 "updated_at": "2026-10-18T07:00:14.101Z"
}
