CVE-2026-65918 Details
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.
A heap-based out-of-bounds read vulnerability has been identified in the PyTorch torchvision library, specifically in versions through 0.28.0. The issue arises in the GIF decoder's 'read_from_tensor' callback, where an unclamped length is passed to 'memcpy', allowing for potential exploitation. Attackers can craft malicious or truncated GIF files that, when processed, lead to a segmentation fault, causing a denial-of-service condition, or allow adjacent heap memory contents to be disclosed.
Users can upgrade to torchvision version 0.28.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pytorch/vision/commit/4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed | [email protected] | Patch |
| https://github.com/pytorch/vision/issues/9551 | [email protected] | ExploitIssue Tracking |
| https://github.com/pytorch/vision/pull/9520 | [email protected] | Issue TrackingPatch |
| https://www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linuxfoundation torchvision | <= 0.28.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Sep 17, 2026 | CVE Modified | [email protected] |
| Aug 21, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 23, 2026 | New CVE Received | [email protected] |