<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Torchvision (Through 0.28.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/torchvision-through-0.28.0/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 23 Jul 2026 18:24:31 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/torchvision-through-0.28.0/feed.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2026-65918 - PyTorch Torchvision Out-of-Bounds Heap Read Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-07-pytorch-torchvision-oob-read/</link><pubDate>Thu, 23 Jul 2026 18:24:31 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-pytorch-torchvision-oob-read/</guid><description>An out-of-bounds heap read vulnerability (CVE-2026-65918) in PyTorch torchvision through version 0.28.0 allows attackers to supply malicious GIF files, leading to denial of service via segmentation fault or disclosure of adjacent heap memory contents.</description><content:encoded><![CDATA[<p>A critical out-of-bounds heap read vulnerability, identified as CVE-2026-65918, affects PyTorch's <code>torchvision</code> library up to and including version 0.28.0. This flaw resides within the GIF decoder's <code>read_from_tensor</code> callback, which inadvertently passes an unchecked (unclamped) length value to the <code>memcpy</code> function. This oversight enables attackers to craft and supply malicious or truncated GIF files. When a vulnerable application processes these files, the uncontrolled memory access can lead to a denial of service (DoS) through a segmentation fault, causing the application to crash. Furthermore, the vulnerability could potentially allow for the disclosure of sensitive data residing in adjacent heap memory regions. The issue was addressed in commit <code>4e05dc2</code>. This vulnerability is particularly concerning for applications that process untrusted image inputs, as successful exploitation could lead to application instability or sensitive information exposure.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li><strong>Attacker crafts malicious GIF</strong>: An attacker develops a specially crafted or truncated GIF file designed to exploit the out-of-bounds read vulnerability in the <code>PyTorch torchvision</code> library.</li>
<li><strong>Delivery of malicious GIF</strong>: The attacker delivers the malicious GIF to a target system. This could occur via various vectors, such as an email attachment, a malicious website download, or embedded within a web application where <code>torchvision</code> processes user-supplied images.</li>
<li><strong>Processing by vulnerable application</strong>: A software application utilizing the vulnerable <code>PyTorch torchvision</code> library (version 0.28.0 or earlier) attempts to process the malicious GIF file for tasks like display, analysis, or transformation.</li>
<li><strong><code>read_from_tensor</code> callback execution</strong>: During the GIF decoding process, the <code>read_from_tensor</code> callback function within <code>torchvision</code> is invoked to handle the image data from the malicious file.</li>
<li><strong>Out-of-bounds read via <code>memcpy</code></strong>: Within the <code>read_from_tensor</code> callback, an unclamped (unchecked) length value is passed to the <code>memcpy</code> function, triggering an attempt to read data beyond the boundaries of the allocated heap buffer.</li>
<li><strong>Denial of Service (DoS)</strong>: The out-of-bounds read operation results in a segmentation fault, causing the application to crash and rendering it unavailable, leading to a denial of service.</li>
<li><strong>Information Disclosure</strong>: In some scenarios, instead of a crash, the out-of-bounds read may disclose sensitive data from adjacent heap memory regions. This leaked information could then be potentially exfiltrated or leveraged by the attacker for further exploitation.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-65918 can lead to a high impact on the availability and confidentiality of systems using vulnerable versions of <code>PyTorch torchvision</code>. The primary observed damage includes denial of service, characterized by application crashes due to segmentation faults, disrupting normal operations. Depending on the memory layout and the nature of the data, exploitation could also lead to the disclosure of adjacent heap memory contents, potentially exposing sensitive information processed by the application. While the NVD does not specify victim counts or targeted sectors, any application that processes untrusted GIF files using <code>PyTorch torchvision</code> through version 0.28.0 is at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Patch CVE-2026-65918 immediately</strong>: Update <code>PyTorch torchvision</code> to a version beyond 0.28.0 that includes commit <code>4e05dc22f5f050a9528cc0ea09ceca6cdaf8f4ed</code> to remediate the vulnerability.</li>
<li><strong>Monitor for application crashes</strong>: Implement monitoring for unexpected process terminations or segmentation faults in applications utilizing <code>PyTorch torchvision</code> as a potential indicator of attempted exploitation, even though this is not specific to CVE-2026-65918.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>denial-of-service</category><category>information-disclosure</category><category>library-vulnerability</category></item></channel></rss>