CVE-2025-58755: Project-MONAI MONAI path traversal in ZIP extraction

CVE-2025-58755 · Severity: high · CVSS 8.8 · Published 2025-09-09

MONAI, a framework for deep learning in healthcare imaging, is vulnerable to a security flaw when processing compressed files. An attacker can create a specially crafted ZIP file that, when downloaded and extracted by the software, overwrites critical system files or configuration data. This could lead to a complete system takeover, data loss, or the inability to boot the affected computer.

Technologies: monai (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2025-58755 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-58755 being exploited in the wild.
How severe is CVE-2025-58755?
High severity, with a CVSS score of 8.8, published 9 September 2025.
Which products and versions are affected?
monai (PyPI) <= 1.5.0, ECOSYSTEM:introduced=0,fixed=1.5.1, ECOSYSTEM:introduced=0,fixed=1.5.1rc1.
Is there a fix for CVE-2025-58755?
Yes. monai (PyPI): upgrade to 1.5.1, 1.5.1rc1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2025-58755 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2025-58755?
Check whether you run monai (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • monai (PyPI): upgrade to 1.5.1, 1.5.1rc1 or later
    pip install "monai>=1.5.1rc1"

Technical details

A path traversal vulnerability exists in MONAI due to the insecure use of the 'zip_file.extractall()' function. The software fails to validate that the file paths contained within a ZIP archive remain within the intended destination directory. An attacker can exploit this by providing a malicious ZIP file containing filenames with traversal sequences (e.g., '../../'). When a user utilizes the 'monai.bundle.scripts.download' function or other extraction utilities to process such a file, the application will write files to arbitrary locations on the filesystem. This can be used to overwrite sensitive files like '/etc/passwd' or SSH keys. The vulnerability is patched in version 1.5.1.

Affected products

  • Project-MONAI monai <= 1.5.0

Identifiers

  • CVE-2025-58755
  • GHSA-x6ww-pf9m-m73m
  • PYSEC-2025-140

Timeline

  • 2025-09-08: disclosed
  • 2025-09-09: advisory
  • 2025-09-09: patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.