Skip to content
Medium 7.1

torchvisionに不正なtarアーカイブで任意のファイルを上書きされる脆弱性

CVE-2026-137507 First seen on SecPulse

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

PackageAffected → Fixed
pytorchvision
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details