{"id":"UBUNTU-CVE-2026-65918","details":"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.","modified":"2026-07-29T10:19:00.551534957Z","published":"2026-07-23T18:17:00Z","upstream":["CVE-2026-65918"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-65918"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-65918"},{"type":"REPORT","url":"https://github.com/pytorch/vision/issues/9551"},{"type":"REPORT","url":"https://github.com/pytorch/vision/pull/9520"}],"affected":[{"package":{"name":"pytorch","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pytorch?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-7","1.8.1-4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.1-4","binary_name":"libtorch-test"},{"binary_version":"1.8.1-4","binary_name":"libtorch1.8"},{"binary_name":"python3-torch","binary_version":"1.8.1-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65918.json"}},{"package":{"name":"pytorch-vision","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pytorch-vision?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.2-1","0.8.2-1ubuntu1","0.8.2-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-torchvision","binary_version":"0.8.2-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65918.json"}},{"package":{"name":"pytorch","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pytorch?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-7","2.6.0+dfsg-9","2.9.1+dfsg-1~exp1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.9.1+dfsg-1~exp1ubuntu2","binary_name":"libtorch-test"},{"binary_name":"libtorch2.9","binary_version":"2.9.1+dfsg-1~exp1ubuntu2"},{"binary_name":"python3-torch","binary_version":"2.9.1+dfsg-1~exp1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65918.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}