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

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-07-23T17:36:42.799Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- pytorch vision: up to 0.28.0 (not affected: 4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed)
- linuxfoundation torchvision: up to 0.28.0

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://github.com/pytorch/vision/issues/9551> (exploit, issue-tracking, technical-description)
- <https://www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read> (exploit, patch, third-party-advisory)
- <https://github.com/pytorch/vision/pull/9520> (issue-tracking, patch)
- <https://github.com/pytorch/vision/commit/4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed> (patch)

## Sources

- CVE List: [CVE-2026-65918](https://www.cve.org/CVERecord?id=CVE-2026-65918), CVE Terms of Use, modified 2026-09-17
- NVD: [CVE-2026-65918](https://nvd.nist.gov/vuln/detail/CVE-2026-65918), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-65918 · Whole record: https://cve.day/CVE-2026-65918.json · Rebuilt by cve.day 2026-11-25T22:59:29.945Z
