<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Datasets (&lt;= 5.1.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/datasets--5.1.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>Fri, 23 Oct 2026 03:20:38 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/datasets--5.1.0/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Hugging Face datasets: Arbitrary code execution via pickle deserialization (CVE-2026-57845)</title><link>https://feed.craftedsignal.io/briefs/2026-10-hugging-face-datasets-pickle-rce/</link><pubDate>Fri, 23 Oct 2026 03:20:38 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-10-hugging-face-datasets-pickle-rce/</guid><description>The Hugging Face 'datasets' library is vulnerable to arbitrary code execution (CVE-2026-57845) due to insecure deserialization of untrusted data via the pandas builder.</description><content:encoded><![CDATA[<p>A vulnerability (CVE-2026-57845) exists in the Hugging Face <code>datasets</code> library, specifically within the <code>dataset_module_factory</code> pandas-based builder. The library uses <code>pandas.read_pickle()</code> to process data files without proper validation. An attacker can supply a malicious pickle file that executes arbitrary code during the deserialization process when <code>load_dataset()</code> is invoked. The PoC demonstrates successful code execution by triggering a local file write upon loading a malicious pickle object. There is currently no upstream fix, PR, or confirmed patched release.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker prepares a malicious pickle object using the <code>__reduce__()</code> method to embed a payload.</li>
<li>Attacker hosts or supplies the malicious file as an input to the <code>load_dataset()</code> function.</li>
<li>Victim application invokes <code>datasets.load_dataset()</code> pointing to the malicious file.</li>
<li>The <code>dataset_module_factory</code> identifies the file and routes it to the <code>pandas</code> packaged builder.</li>
<li>The builder invokes <code>pandas.read_pickle()</code> on the untrusted input.</li>
<li>The <code>pickle</code> module deserializes the object, triggering the attacker-supplied callable.</li>
<li>Arbitrary code executes within the context of the application process.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in arbitrary code execution on the system running the <code>datasets</code> library. The PoC confirms that code execution occurs before the library attempts to convert the data into an Arrow table, rendering post-deserialization validation ineffective.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Identify all instances of the Hugging Face <code>datasets</code> library in production and development environments using automated inventory tools.</li>
<li>Immediately stop using pickle-formatted datasets from untrusted or external sources.</li>
<li>Migrate all data exchange to secure formats such as Parquet, Arrow, CSV, or JSON.</li>
<li>If existing data must be moved, use <code>Dataset.from_pandas()</code> with a trusted, already-loaded DataFrame rather than loading from disk via the <code>pandas</code> builder.</li>
<li>Implement strict input validation or access controls to prevent the loading of pickle files from arbitrary or internet-accessible locations.</li>
<li>Monitor logs for the execution of Python processes that import the <code>datasets</code> module and perform file operations in untrusted directories.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>