<?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>MONAI (1.6.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/monai-1.6.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>Tue, 18 Aug 2026 20:57:21 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/monai-1.6.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>Arbitrary Code Execution in MONAI NumpyReader</title><link>https://feed.craftedsignal.io/briefs/2026-08-monai-rce/</link><pubDate>Tue, 18 Aug 2026 20:57:21 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-monai-rce/</guid><description>The MONAI library contains a hardcoded insecure deserialization vulnerability in NumpyReader, allowing arbitrary code execution when processing malicious .npy or .npz files.</description><content:encoded><![CDATA[<p>The <code>NumpyReader</code> class in the MONAI medical imaging framework (specifically <code>monai/data/image_reader.py</code>) contains a critical security flaw where <code>numpy.load</code> is invoked with <code>allow_pickle=True</code>. This parameter is hardcoded and cannot be overridden by end users via keyword arguments. Because the <code>LoadImage</code> transform automatically selects <code>NumpyReader</code> for all <code>.npy</code> and <code>.npz</code> files, any automated data pipeline or dataset processing workflow - including <code>PersistentDataset</code> or <code>CacheDataset</code> - becomes a vector for arbitrary code execution. The vulnerability stems from Python's pickle protocol, which can be leveraged to execute arbitrary code during the deserialization of untrusted objects within a data file. This vulnerability affects all MONAI versions prior to 1.6.0.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker creates a malicious serialized Python object using the <code>__reduce__</code> method to define the payload (e.g., <code>os.system</code> commands).</li>
<li>Attacker writes this object to a <code>.npy</code> or <code>.npz</code> file using <code>np.save</code>.</li>
<li>Attacker poisons a shared research dataset or contributes the malicious file to a public repository, tutorial, or MONAI bundle.</li>
<li>Victim downloads or maps the malicious dataset to their local environment or server.</li>
<li>Victim initiates a MONAI data pipeline (e.g., training loop or inference script) that invokes <code>LoadImage</code>.</li>
<li><code>LoadImage</code> identifies the file extension and triggers <code>NumpyReader.read()</code>.</li>
<li><code>NumpyReader</code> calls <code>np.load(filename, allow_pickle=True)</code>.</li>
<li>Python deserializes the malicious payload, resulting in execution of attacker-supplied code within the process context.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in arbitrary code execution on the server or workstation processing the medical data. This poses significant risks in clinical and research environments, potentially leading to unauthorized access to protected health information (PHI), lateral movement within institutional networks, and compromise of high-performance computing clusters used for medical image analysis.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritize immediate remediation and containment:</p>
<ul>
<li>Upgrade the MONAI library to version 1.6.0 or higher immediately.</li>
<li>Audit all data pipelines and research environments for untrusted <code>.npy</code> or <code>.npz</code> file sources.</li>
<li>Isolate high-performance computing environments where shared datasets are processed from sensitive network segments until updates are verified.</li>
<li>Restrict filesystem access to dataset directories to prevent unauthorized modification by low-privileged users or external contributors.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category></item></channel></rss>