
CVE catalog
CVE-2026-65918
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. At
- Severity
- High · CVSS 7.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.45% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pytorch-vision | sid | 0.27.0-3 | vulnerable |
| Debian | pytorch-vision | forky | 0.27.0-3 | vulnerable |
| Debian | pytorch-vision | trixie | 0.21.0-3 | vulnerable |
| Debian | pytorch-vision | bookworm | 0.14.1-2 | vulnerable |
| Cpe | torchvision | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pytorch-vision | source | sid | (unfixed) | not yet assigned | Not reported | [1142689] |
| Debian | pytorch-vision | source | forky | (unfixed) | not yet assigned | Not reported | [1142689] |
| Debian | pytorch-vision | source | trixie | (unfixed) | not yet assigned | Not reported | [1142689] |
| Debian | pytorch-vision | source | bookworm | (unfixed) | not yet assigned | Not reported | [1142689] |
Notes
[trixie] pytorch-vision: Minor issue [bookworm] pytorch-vision: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-torchvision]Affected
Source package: [pytorch-vision]
Details (2)
0.14.1-2· amd64 · bookwormAffected
nvd · pytorch-vision · debian · bookworm; nvd · pytorch-vision · debian · 12
0.14.1-2· arm64 · bookwormAffected
nvd · pytorch-vision · debian · bookworm; nvd · pytorch-vision · debian · 12
[Debian 13 (Trixie)]
- [python3-torchvision]Affected
Source package: [pytorch-vision]
Details (2)
0.21.0-3· amd64 · trixieAffected
nvd · pytorch-vision · debian · 13
0.21.0-3· arm64 · trixieAffected
nvd · pytorch-vision · debian · 13
Observed:
References
- [https://github.com/pytorch/vision/commit/4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed]
- [https://github.com/pytorch/vision/issues/9551]
- [https://github.com/pytorch/vision/pull/9520]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-65918]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-65918]
- [https://security-tracker.debian.org/tracker/CVE-2026-65918]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-65918.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2499.json]
- [https://www.vulncheck.com/advisories/pytorch-torchvision-gif-decoder-out-of-bounds-heap-read]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]