{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "5.15.0"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "5eddc12edfaf8cafde8c9bae4ccb12f8a139b4f9"
            }
          ],
          "repo": "https://github.com/huggingface/transformers",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75104.json"
  },
  "details": "Hugging Face Transformers fails to validate shard filenames in checkpoint index files, allowing attackers to read arbitrary files outside the model directory. Attackers can supply malicious index files with parent-directory references or absolute paths that are joined without validation, enabling file disclosure and filesystem reconnaissance.",
  "id": "CVE-2026-75104",
  "modified": "2026-08-20T03:30:10.233802446Z",
  "published": "2026-08-17T20:36:00.721Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75104.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-75104"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/hugging-face-transformers-path-traversal-via-checkpoint-index"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/huggingface/transformers/issues/47176"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/huggingface/transformers/issues/47177"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/huggingface/transformers"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hugging Face Transformers Path Traversal via Checkpoint Index"
}