CVE-2026-100842: MONAI Package Eval Injection Vulnerability Leading to Code Execution

monai Updated 01 Oct 2026

Summary

27/09/2026
Yes i
High
8.8

CVE-2026-100842: MONAI through 1.6.0 contains an eval injection vulnerability in _get_fake_spatial_shape() in monai/bundle/scripts.py. Affects monai versions < 1.6.1rc0. Fixed in 1.6.1rc0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

MONAI is an open-source framework designed for medical imaging applications, providing tools for deep learning and data processing. It facilitates the development of AI models in healthcare, allowing researchers and developers to build and deploy solutions efficiently. However, the package has a critical vulnerability that can be exploited if an attacker manipulates bundle metadata.

Vulnerability Detail

MONAI through version 1.6.0 contains an eval injection vulnerability in the _get_fake_spatial_shape() function located in monai/bundle/scripts.py. This function improperly validates shape expressions, allowing expressions built solely from constants and attribute, subscript, or call nodes to bypass the intended security checks. As a result, an attacker with the ability to influence a bundle's metadata can escape the eval sandbox and execute arbitrary code, leading to severe security implications.

How To Fix

Minimum fixed version

1.6.1rc0

This is the first release that contains the fix.

pip install --upgrade "monai==1.6.1rc0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using the affected function _get_fake_spatial_shape() with untrusted metadata. Ensure that any metadata used in your application is from a trusted source to mitigate the risk of exploitation.

Conclusion

The eval injection vulnerability in MONAI poses significant risks, allowing attackers to execute arbitrary code through manipulated metadata. It is crucial to update to the patched version to mitigate these risks and ensure the security of your applications.

See every vulnerability recorded for monai →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.8, indicating a high severity level.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability can lead to arbitrary code execution, allowing attackers to compromise the integrity and confidentiality of the system.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just the Pipfile.lock.

If an immediate update is not possible, ensure that you do not use untrusted metadata with the affected function as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for monai.

How To Fix

Minimum fixed version

1.6.1rc0

This is the first release that contains the fix.

pip install --upgrade "monai==1.6.1rc0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback