Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. monai
  4. ›
  5. CVE-2026-21851

CVE-2026-21851: MONAI has Path Traversal (Zip Slip) in NGC Private Bundle Download

January 6, 2026 (updated January 29, 2026)

A Path Traversal (Zip Slip) vulnerability exists in MONAI’s _download_from_ngc_private() function. The function uses zipfile.ZipFile.extractall() without path validation, while other similar download functions in the same codebase properly use the existing safe_extract_member() function.

This appears to be an implementation oversight, as safe extraction is already implemented and used elsewhere in MONAI.

CWE: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)


References

  • github.com/Project-MONAI/MONAI
  • github.com/Project-MONAI/MONAI/commit/4014c8475626f20f158921ae0cf98ed259ae4d59
  • github.com/Project-MONAI/MONAI/security/advisories/GHSA-9rg3-9pvr-6p27
  • github.com/advisories/GHSA-9rg3-9pvr-6p27
  • nvd.nist.gov/vuln/detail/CVE-2026-21851

Code Behaviors & Features

Detect and mitigate CVE-2026-21851 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.2

Fixed versions

  • 1.5.2

Solution

Upgrade to version 1.5.2 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/monai/CVE-2026-21851.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:35:57 +0000.