# CVE-2026-65918: PyTorch torchvision GIF Decoder Out-of-bounds Heap Read

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-07-23 · Modified: 2026-09-17
- Aliases: UBUNTU-CVE-2026-65918, DEBIAN-CVE-2026-65918
- Record: https://cvemate.com/vulnerability/CVE-2026-65918 · JSON: https://cvemate.com/vulnerability/CVE-2026-65918/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.33%, percentile 28.119%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github, reference)

## Affected

- debian pytorch-vision (Debian): All versions (No fix recorded)
- ubuntu pytorch (Ubuntu): All versions (No fix recorded)
- ubuntu pytorch-vision (Ubuntu): All versions (No fix recorded)
- linuxfoundation torchvision: ≤ 0.28.0
- pytorch vision: ≤ 0.28.0

## References

- <https://github.com/pytorch/vision/issues/9551>
- <https://github.com/pytorch/vision/pull/9520>
- <https://github.com/pytorch/vision/commit/4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed>
- <https://www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read>
- <https://ubuntu.com/security/CVE-2026-65918>
- <https://www.cve.org/CVERecord?id=CVE-2026-65918>
- <https://security-tracker.debian.org/tracker/CVE-2026-65918>

---

Data as of 2026-12-05T06:48:30.283Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
