Vulnerability · Published Jul 23, 2026 · Assigned by VulnCheck
CVE-2026-65918PyTorch torchvision GIF Decoder Out-of-bounds Heap Read
High 7.1
In plain English
A high-severity out-of-bounds read in vision from pytorch. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities).
Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.4%top 61.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pytorch-vision | no fix listed | DEBIAN-CVE-2026-65918 |
| Debian:13 | pytorch-vision | no fix listed | DEBIAN-CVE-2026-65918 |
| Debian:14 | pytorch-vision | no fix listed | DEBIAN-CVE-2026-65918 |
| Ubuntu:22.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2026-65918 |
| Ubuntu:26.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2026-65918 |
| Ubuntu:26.10 | pytorch | no fix listed | UBUNTU-CVE-2026-65918 |
| Ubuntu:22.04:LTS | pytorch-vision | no fix listed | UBUNTU-CVE-2026-65918 |
| Ubuntu:26.10 | pytorch-vision | no fix listed | UBUNTU-CVE-2026-65918 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
References
- Researcher Disclosure technical-description, exploit, issue-tracking
- Pull Request issue-tracking, patch
- Patch Commit patch
- https://www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read third-party-advisory