Description
pydicom is a pure Python package for working with DICOM files. Versions 2.0.0-rc.1 through 3.0.1 are vulnerable to Path Traversal through a maliciously crafted DICOMDIR ReferencedFileID when it is set to a path outside the File-set root. pydicom resolves the path only to confirm that it exists, but does not verify that the resolved path remains under the File-set root. Subsequent public FileSet operations such as copy(), write(), and remove()+write(use_existing=True) use that unchecked path in file I/O operations. This allows arbitrary file read/copy and, in some flows, move/delete outside the File-set root. This issue has been fixed in version 3.0.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pydicom | pydicom | >= 2.0.0-rc.1, < 3.0.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pydicom | 3.0.2-1 | — |
| Debian 13 | pydicom | No fix yet | — |
| Debian 12 | pydicom | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pydicom | No fix yet | — |
| Ubuntu 26.04 LTS | pydicom | No fix yet | — |
| Ubuntu 25.10 | pydicom | No fix yet | — |
| Ubuntu 24.04 LTS | pydicom | No fix yet | — |
| Ubuntu 22.04 LTS | pydicom | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pydicom | No fix yet | — |
| Ubuntu 18.04 LTS | pydicom | No fix yet | — |
| Ubuntu 16.04 LTS | pydicom | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-pydicom | 3.0.2-1.1 | openSUSE-SU-2026:10412-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-pydicom | 3.0.2-r0 | — |
| Alpine v3.23 | py3-pydicom | 3.0.2-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pydicom | >= 3.0.0, < 3.0.2 | 3.0.2 | GHSA-v856-2rf8-9f28 |
| PyPI | pydicom | < 2.4.5 | 2.4.5 | GHSA-v856-2rf8-9f28 |
| PyPI | pydicom | >= 2.0.0, < 3.0.2 | 3.0.2 | PYSEC-2026-2266 |
Advisories 1
- openSUSE-SU-2026:10412-1 python311-pydicom-3.0.2-1.1 on GA media SUSE / openSUSE Security Updates · Mar 24, 2026