Description
MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.1, 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. Commit 4014c8475626f20f158921ae0cf98ed259ae4d59 fixes this issue.
Problem types
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
References
github.com/.../MONAI/security/advisories/GHSA-9rg3-9pvr-6p27
github.com/.../MONAI/security/advisories/GHSA-9rg3-9pvr-6p27
github.com/...ommit/4014c8475626f20f158921ae0cf98ed259ae4d59