Skip to content
OpenAdvisories
High · 7.8 CVE-2026-32711 EUVD-2026-13433GHSA-v856-2rf8-9f28PYSEC-2026-2266

pydicom: Path traversal in FileSet/DICOMDIR ReferencedFileID allows file access outside the File-set root

Published Mar 20, 2026 · Updated Mar 20, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 pydicom 3.0.2-1 —
Debian 13 pydicom No fix yet —
Debian 12 pydicom No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pydicom No fix yet —
Ubuntu 18.04 LTS pydicom No fix yet —
Ubuntu 16.04 LTS pydicom No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pydicom 3.0.2-1.1 openSUSE-SU-2026:10412-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-pydicom 3.0.2-r0 —
Alpine v3.23 py3-pydicom 3.0.2-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
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

References