Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. monai
  4. ›
  5. GHSA-wg9g-w2j2-8pgr

GHSA-wg9g-w2j2-8pgr: MONAI: Unsafe deserialization in NumpyReader allows arbitrary code execution via malicious .npy files

August 18, 2026

The NumpyReader class in monai/data/image_reader.py unconditionally uses np.load(name, allow_pickle=True) (line 1276), enabling arbitrary code execution when loading a crafted .npy or .npz file. This affects all MONAI versions up to and including the latest commit (5b71547). The allow_pickle parameter is hardcoded to True and cannot be overridden by the user (the docstring explicitly states kwargs are accepted “except allow_pickle”).

References

  • github.com/Project-MONAI/MONAI/pull/8875
  • github.com/Project-MONAI/MONAI/releases/tag/1.6.0
  • github.com/Project-MONAI/MONAI/security/advisories/GHSA-wg9g-w2j2-8pgr
  • github.com/advisories/GHSA-wg9g-w2j2-8pgr

Code Behaviors & Features

Detect and mitigate GHSA-wg9g-w2j2-8pgr with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.6.0

Fixed versions

  • 1.6.0

Solution

Upgrade to version 1.6.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

pypi/monai/GHSA-wg9g-w2j2-8pgr.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:54 +0000.