7.1high
PyTorch torchvision GIF Decoder Out-of-bounds Heap Read
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pytorch vision | up to 0.28.0 Not affected: 4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed | CVE List |
| linuxfoundation torchvision | up to 0.28.0 | NVD |
All scores
| VulnCheck | 7.1high CVSS:4.0 | 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 | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
PyTorch torchvision hasta la versión 0.28.0, corregido en el commit 4e05dc2, contiene una vulnerabilidad de lectura de montón fuera de límites en la función de callback read_from_tensor del decodificador GIF que pasa una longitud no restringida a memcpy. Los atacantes pueden proporcionar archivos GIF maliciosos o truncados para causar denegación de servicio a través de un fallo de segmentación o divulgar el contenido de la memoria adyacente del montón.
References
| https://github.com/pytorch/vision/issues/9551 | exploit, issue-tracking, technical-description | |
| https://github.com/pytorch/vision/pull/9520 | issue-tracking, patch | |
| https://github.com/pytorch/vision/commit/4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed | patch | |
| https://www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read | exploit, patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-65918 changed 2026-09-17 | CVE Terms of Use |
| NVD | CVE-2026-65918 changed 2026-10-24 | Public domain |