CVE-2024-29421
Medium · 6.2CVSS
6.2
EPSS
0.2%
Published
May 22, 2024
CISA due date
—
Cloudanix analysis
A bug in medical image handling software can let someone run harmful programs on a computer simply by opening a specially made file.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in DICOM parsing code allows memory corruption and arbitrary code execution when processing a malicious file.
Why it matters to the business
Attackers can gain control of systems running the vulnerable software, leading to potential data theft, ransomware deployment, or service disruption in environments handling medical images.
How an attack unfolds
An attacker crafts a malformed DICOM file that triggers the overflow in the basic.c parsing routine; when the file is opened locally, the overflow overwrites return addresses or function pointers, allowing shellcode execution.
How to fix it
Upgrade to version 0.24.0 or later. If immediate upgrade is not possible, restrict opening of untrusted DICOM files and run the application under least-privilege accounts.
How to confirm the fix worked
Verify the installed binary or package reports version 0.24.0 or higher; test by attempting to process known-good and known-malformed DICOM files in a controlled environment.
Typical attack path
- Identify or gain access to a system with the vulnerable version installed
- Prepare a specially crafted DICOM file that overflows the buffer in libs/dicom/basic.c
- Deliver the file via email, USB, or network share
- Trick the user or automated process into opening the file with the affected application
- Execute arbitrary code with the privileges of the running process
How to detect it
Review application logs and system process creation events around the time a suspicious DICOM file was accessed; look for crashes or unexpected child processes spawned by the xmedcon binary.
What your security team should do
- Prioritize upgrade to the fixed version across all instances within the next patching cycle
- Add the application to the inventory of medical imaging tools and enforce software restriction policies
- Monitor for new exploit code or public proof-of-concept releases given the local attack vector
The record
xmedcon 0.23.0 and fixed in v.0.24.0 is vulnerable to Buffer Overflow via libs/dicom/basic.c which allows an attacker to execute arbitrary code.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | xmedcon | 0 | 0.16.3+dfsg-1+deb11u1 |
| Debian:12 | xmedcon | 0 | 0.23.0-gtk3+dfsg-1+deb12u1 |
| Debian:13 | xmedcon | 0 | 0.24.0-gtk3+dfsg-1 |
| Ubuntu:16.04:LTS | xmedcon | 0 | No fix |
| Ubuntu:18.04:LTS | xmedcon | 0 | No fix |
| Ubuntu:20.04:LTS | xmedcon | 0 | No fix |
| Ubuntu:22.04:LTS | xmedcon | 0 | No fix |
| Ubuntu:24.04:LTS | xmedcon | 0 | No fix |
| Ubuntu:24.10 | xmedcon | 0 | No fix |
| Ubuntu:25.04 | xmedcon | 0 | No fix |
| Ubuntu:25.10 | xmedcon | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | xmedcon | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | xmedcon | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | xmedcon | 0 | No fix |
Related vulnerabilities
- CVE-2026-107705 Poppler 0.42.0 through 26.10.0 contains a stack-based buffer overflow in… CWE-121
- CVE-2026-95818 A stack-based buffer overflow in the dynamic loader (ld.so) of the GNU C Library (glibc)… CWE-121
- CVE-2026-61548 Rsyslog is a rocket-fast system for log processing. CWE-121
- CVE-2026-19774 BlueZ A2DP Stack-based Buffer Overflow Remote Code Execution Vulnerability. CWE-121
- CVE-2026-19542 Calling tdelete on a sufficiently deep tree in the GNU C Library version 2.1 to 2.44 may… CWE-121
- CVE-2026-15419 In the silabser.sys driver for CP210x devices v11.5.0 and earlier, a local unprivileged… CWE-121
- CVE-2026-88047 Tesseract is an open source OCR engine. CWE-121
- CVE-2026-88289 GeoVision GV-LPC2211 V1.14 (260903) fails to validate attacker-controlled variable-length… CWE-121