High severity · published Jul 23, 2026
CVE-2026-65918
PyTorch torchvision GIF Decoder Out-of-bounds Heap Read
7.1
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 38% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
VI
vision · pytorch
through 0.28.0 · source: vendor
TO
Torchvision · Linuxfoundation
through 0.28.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-65918
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-65918
Patch
https://github.com/pytorch/vision/commit/4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed
Exploit
https://github.com/pytorch/vision/issues/9551
Issue Tracking
https://github.com/pytorch/vision/pull/9520
Exploit
https://www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read
