{"id":"CVE-2026-137507","summary":"torchvision before 0.29.2 Path Traversal via Tar Archive Extraction","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.","modified":"2026-11-26T23:00:56.760767343Z","published":"2026-11-26T20:02:35.371Z","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"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pytorch/vision","events":[{"introduced":"0"},{"fixed":"f12281517f1b2f6255904639b027c9436f3e5008"},{"fixed":"7a7520f83957fe6a0f934fe7035f07b5ef32e8f9"},{"fixed":"b22811118b30f18ef02006fc6215a52140fd689f"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"0.29.2"}]},{"range":[{"fixed":"7a7520f83957fe6a0f934fe7035f07b5ef32e8f9"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"b22811118b30f18ef02006fc6215a52140fd689f"}]},{"source":"REFERENCES_TAG","original_tag":"v0.29.2","range":[{"fixed":"f12281517f1b2f6255904639b027c9436f3e5008"}]}]}}],"versions":["v0.29.2-rc1","v0.29.1-rc2","v0.29.1","v0.29.1-rc1","v0.29.0-rc2","v0.29.0","v0.29.0-rc1","tag_from_my_fork","v0.4.0","v0.2.1","v0.2.0","v0.1.9","v0.1.8","v0.1.7","v0.1.6","v0.1.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-137507.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}