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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-22"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137507.json"
}{
"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"
}
]
}