torchvisionに不正なtarアーカイブで任意のファイルを上書きされる脆弱性
Summary
torchvisionの0.29.2より前のバージョンには、tarアーカイブの展開処理にパストラバーサルの脆弱性(CVE-2026-137507)があります。細工されたアーカイブを展開すると、展開先の外のファイルが上書きされ、Pythonモジュールを書き換えられてコードを実行されるおそれがあります。修正版の0.29.2が公開されているので、アップデートしてください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
torchvisionの0.29.2より前のバージョンには、tarアーカイブの展開処理にパストラバーサルの脆弱性(CVE-2026-137507)があります。細工されたアーカイブを展開すると、展開先の外のファイルが上書きされ、Pythonモジュールを書き換えられてコードを実行されるおそれがあります。修正版の0.29.2が公開されているので、アップデートしてください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pytorchvision |
< 0.29.2→ 0.29.2 |
0.29.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-137507 pytorch-vision No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-137507 pytorch-vision No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web disclosure@vulncheck.com
- web github.com