Intel

AIKIDO-2024-10112

pynetdicom is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 31, 2024

75

High Risk

This Affects:

pythonpynetdicom
0.8.0 - 2.0.2
Fixed in 2.1.0
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to a path traversal vulnerability, allowing an attacker to overwrite any files on the filesystem through a malformed SOPInstanceUID value in a C-STORE request.

Who does this affect?

You are affected if you use the handle_store function directly, or if you indirectly use the Store SCP functionality via pynetidcom's apps (https://github.com/pydicom/pynetdicom/blob/main/pynetdicom/apps/) or otherwise.

Background info

pynetdicom is vulnerable to Path Traversal in versions 0.8.0 - 2.0.2.

How to fix this

Upgrade pynetdicom to the patch version (version 2.1.0).