{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.29.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "7a7520f83957fe6a0f934fe7035f07b5ef32e8f9"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "b22811118b30f18ef02006fc6215a52140fd689f"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.29.2",
                "range": [
                  {
                    "fixed": "f12281517f1b2f6255904639b027c9436f3e5008"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f12281517f1b2f6255904639b027c9436f3e5008"
            },
            {
              "fixed": "7a7520f83957fe6a0f934fe7035f07b5ef32e8f9"
            },
            {
              "fixed": "b22811118b30f18ef02006fc6215a52140fd689f"
            }
          ],
          "repo": "https://github.com/pytorch/vision",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137507.json"
  },
  "details": "torchvision before 0.29.2 contains a path traversal vulnerability in _extract_tar() that allows attackers to write files outside the extraction directory by supplying crafted tar archives. Attackers controlling archives passed to extract_archive() or download_and_extract_archive() can use .. paths, absolute paths, or symlinks to overwrite Python modules and achieve code execution.",
  "id": "CVE-2026-137507",
  "modified": "2026-11-26T22:45:31.888696477Z",
  "published": "2026-11-26T20:02:35.371Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137507.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/pytorch/vision"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py#L209-L213"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689f"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/pytorch/vision/issues/9517"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/pytorch/vision/releases/tag/v0.29.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137507"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/torchvision-before-0.29.2-path-traversal-via-tar-archive-extraction"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "torchvision before 0.29.2 Path Traversal via Tar Archive Extraction"
}