CVE-2024-42845
High · 8.0CVSS
8.0
EPSS
2.7%
Published
Aug 23, 2024
CISA due date
—
Cloudanix analysis
A flaw in medical imaging software lets attackers run harmful programs on a computer simply by tricking someone into opening a specially made scan file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Eval injection in invesalius/reader/dicom.py permits arbitrary code execution when a crafted DICOM file is loaded, as untrusted input reaches an eval call without sanitization.
Why it matters to the business
Attackers can run malicious code on workstations that open medical imaging files, risking data theft, system compromise, and disruption of clinical workflows; the flaw affects widely used open-source software with no KEV or ransomware usage observed.
How an attack unfolds
An attacker crafts a DICOM file containing Python code in a field that reaches eval in dicom.py; the victim opens the file in InVesalius 3.1.99991-3.1.99998, triggering immediate code execution under the user's privileges.
How to fix it
Upgrade InVesalius to a version beyond 3.1.99998 that removes or secures the eval usage in dicom.py; avoid opening untrusted DICOM files until patched.
How to confirm the fix worked
Confirm the installed InVesalius version is newer than 3.1.99998 and test that crafted DICOM files no longer trigger code execution; review source for removal of direct eval on DICOM metadata.
Typical attack path
- Attacker creates malicious DICOM file embedding executable Python payload
- Payload is delivered via email, USB, or network share
- Victim loads the file in the vulnerable InVesalius version
- dicom.py executes the injected code via eval
- Attacker gains code execution on the target system
How to detect it
Inspect file-access logs and process creation events for InVesalius loading DICOM files from unusual locations; look for unexpected Python subprocesses or network connections immediately after DICOM handling.
What your security team should do
- Block opening of DICOM files from untrusted sources until patched
- Monitor for InVesalius updates and deploy as soon as available
- Scan endpoints for presence of InVesalius versions 3.1.99991 through 3.1.99998
The record
An eval Injection vulnerability in the component invesalius/reader/dicom.py of InVesalius 3.1.99991 through 3.1.99998 allows attackers to execute arbitrary code via loading a crafted DICOM file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | invesalius | 0 | No fix |
| Debian:12 | invesalius | 0 | No fix |
| Debian:13 | invesalius | 0 | No fix |
| Debian:14 | invesalius | 0 | No fix |
| Ubuntu:16.04:LTS | invesalius | 0 | No fix |
| Ubuntu:18.04:LTS | invesalius | 0 | No fix |
| Ubuntu:20.04:LTS | invesalius | 0 | No fix |
| Ubuntu:25.04 | invesalius | 0 | No fix |
| Ubuntu:25.10 | invesalius | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | invesalius | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | invesalius | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | invesalius | 0 | No fix |
Related vulnerabilities
- CVE-2026-114125 Storybook is a frontend workshop for building user interface components and pages in… CWE-94
- CVE-2026-113776 virtualenv is a tool for creating isolated virtual python environments. CWE-94
- CVE-2026-112100 A vulnerability was determined in DeepPavlov up to 1.7.0. CWE-94
- CVE-2026-112095 A flaw has been found in SourceCodester Inventory System 1.0. CWE-94
- CVE-2026-112042 A security flaw has been discovered in diem-project diem up to… CWE-94
- CVE-2026-112038 A vulnerability has been found in diem-project diem up to… CWE-94
- CVE-2026-111991 A security vulnerability has been detected in WongKinYiu yolov9 0.1. CWE-94
- CVE-2026-111986 A vulnerability was determined in AUTOMATIC1111 stable-diffusion-webui up to 1.10.1. CWE-94