<?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>Ray (&lt; 2.56.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/ray--2.56.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>Wed, 01 Jul 2026 17:40:30 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/ray--2.56.0/feed.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2026-57516: Ray Unsafe Deserialization Leading to RCE</title><link>https://feed.craftedsignal.io/briefs/2026-07-cve-2026-57516-ray-deserialization-rce/</link><pubDate>Wed, 01 Jul 2026 17:40:30 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-cve-2026-57516-ray-deserialization-rce/</guid><description>An unsafe deserialization vulnerability (CVE-2026-57516) exists in the WebDataset reader of the Ray framework prior to version 2.56.0, allowing remote attackers to achieve arbitrary code execution on Ray remote workers by supplying a malicious tar archive to the `read_webdataset()` function, which then unconditionally calls `pickle.loads()` on .pkl/.pickle entries or `torch.load()` with `weights_only=False` on .pt/.pth entries, executing arbitrary code.</description><content:encoded><![CDATA[<p>Ray prior to 2.56.0 contains an unsafe deserialization vulnerability (CVE-2026-57516) in its WebDataset reader. This flaw, affecting the <code>_default_decoder()</code> function within <code>webdataset_datasource.py</code>, allows remote attackers to achieve arbitrary code execution on Ray remote workers. The vulnerability is triggered by an attacker supplying a specially crafted malicious tar archive to the <code>read_webdataset()</code> function. When processing this archive, the <code>_default_decoder()</code> unconditionally calls <code>pickle.loads()</code> on entries with <code>.pkl</code> or <code>.pickle</code> extensions, or <code>torch.load()</code> with <code>weights_only=False</code> on <code>.pt</code> or <code>.pth</code> entries. This deserialization process executes arbitrary Python code, leading to RCE across any Ray worker processing the malicious data. This vulnerability affects all Ray deployments prior to version 2.56.0.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker crafts a malicious tar archive containing a <code>.pkl</code>, <code>.pickle</code>, <code>.pt</code>, or <code>.pth</code> file embedded with arbitrary Python code.</li>
<li>The attacker identifies a Ray deployment running a vulnerable version (prior to 2.56.0) that can be induced to load external data.</li>
<li>The attacker supplies the malicious tar archive to a Ray application or service that utilizes the <code>read_webdataset()</code> function.</li>
<li>A Ray remote worker attempts to process the supplied tar archive through its WebDataset reader.</li>
<li>The <code>_default_decoder()</code> function in <code>webdataset_datasource.py</code> identifies the malicious file entry (e.g., <code>.pkl</code>) within the archive.</li>
<li>The function unconditionally calls <code>pickle.loads()</code> (or <code>torch.load()</code> for <code>.pt/.pth</code>) on the malicious entry, causing the embedded arbitrary Python code to execute within the Ray worker's context.</li>
<li>The execution of arbitrary code results in remote code execution (RCE) on the compromised Ray remote worker, potentially leading to system compromise or data exfiltration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-57516 allows remote attackers to execute arbitrary code with the privileges of the Ray remote worker process. This can lead to full compromise of the affected worker, potential access to sensitive data processed by Ray, disruption of Ray clusters, or lateral movement within the compromised environment. While no specific victim counts or targeted sectors are currently available, any organization utilizing Ray prior to version 2.56.0 and processing untrusted data through the WebDataset reader is at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-57516 by upgrading Ray to version 2.56.0 or later immediately.</li>
<li>Implement strict input validation and sanitization for all data supplied to <code>read_webdataset()</code> functions, particularly for tar archives from untrusted sources, to prevent the ingestion of malicious content.</li>
<li>Restrict network access to Ray clusters and remote workers to only trusted entities and services to minimize the attack surface.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>vulnerability</category><category>deserialization</category><category>rce</category><category>ray</category><category>execution</category></item></channel></rss>