CVE-2026-65918
Awaiting Analysis Awaiting Analysis - Queue

Heap Out-of-Bounds Read in PyTorch Torchvision GIF Decoder

Vulnerability report for CVE-2026-65918, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-23

Last updated on: 2026-07-23

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-23
Last Modified
2026-07-23
Generated
2026-07-23
AI Q&A
2026-07-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
pytorch torchvision to 0.28.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an out-of-bounds heap read in PyTorch torchvision's GIF decoder. When processing a maliciously crafted or truncated GIF file, the decoder incorrectly uses an unclamped length value in a memory copy operation. This causes it to read beyond the allocated buffer, leading to a segmentation fault or potential disclosure of adjacent heap memory.

Detection Guidance

To detect this vulnerability, inspect PyTorch torchvision versions up to 0.28.0. Check for crashes or segmentation faults when processing GIF files. Use tools like `pip show torchvision` to verify installed versions. Monitor logs for SIGSEGV errors during image decoding operations.

Impact Analysis

The primary impact is denial of service via application crashes (segmentation faults). Attackers could supply specially crafted GIF files to trigger these crashes. There is also a theoretical risk of information disclosure if adjacent memory contents are exposed, though this was not confirmed in testing.

Compliance Impact

This vulnerability primarily causes denial of service via segmentation faults when processing malicious GIF files. While it may theoretically disclose adjacent heap memory, no confirmed cases of sensitive data exposure were found. Compliance impact depends on whether the affected system processes untrusted GIF inputs in regulated environments. For GDPR, this could pose risks if personal data is processed during the crash. For HIPAA, it may affect systems handling medical imaging if crashes disrupt operations.

Mitigation Strategies

Upgrade PyTorch torchvision to a version containing commit 4e05dc2 or later. Avoid processing untrusted GIF files until patched. Implement input validation for GIF files before decoding. Monitor for crashes or memory corruption during image processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-65918. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart