CVE-2026-65918
PyTorch torchvision through 0.28.0, fixed in commit 4e05dc2, …
PyTorch torchvision through 0.28.0, fixed in commit 4e05dc2, contains an out-of-bounds heap read vulnerability in the GIF decoder's read_from_tensor callback that passes unclamped length to memcpy. Attackers can supply malicious or truncated GIF files to cause denial of service via segmentation fault or disclose adjacent heap memory contents.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/pytorch/vision/commit/4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed
- github.com/pytorch/vision/issues/9551
- github.com/pytorch/vision/pull/9520
- www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read
- nvd.nist.gov/vuln/detail/CVE-2026-65918
- cve.org/CVERecord?id=CVE-2026-65918
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.