Directory Traversal Affecting py3-pydicom package, versions <3.0.2-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.28% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE323-PY3PYDICOM-15790735
  • published27 Mar 2026
  • disclosed20 Mar 2026

Introduced: 20 Mar 2026

CVE-2026-32711  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Alpine:3.23 py3-pydicom to version 3.0.2-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-pydicom package and not the py3-pydicom package as distributed by Alpine. See How to fix? for Alpine:3.23 relevant fixed versions and status.

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.