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

EcosystemPackageFixed inAdvisory
Debian:12pytorch-visionno fix listedDEBIAN-CVE-2026-65918
Debian:13pytorch-visionno fix listedDEBIAN-CVE-2026-65918
Debian:14pytorch-visionno fix listedDEBIAN-CVE-2026-65918
Ubuntu:22.04:LTSpytorchno fix listedUBUNTU-CVE-2026-65918
Ubuntu:26.04:LTSpytorchno fix listedUBUNTU-CVE-2026-65918
Ubuntu:26.10pytorchno fix listedUBUNTU-CVE-2026-65918
Ubuntu:22.04:LTSpytorch-visionno fix listedUBUNTU-CVE-2026-65918
Ubuntu:26.10pytorch-visionno fix listedUBUNTU-CVE-2026-65918

Affected products (as reported)

VendorProductVersions
pytorch vision 0 – through 0.28.0

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

References