Skip to main content
← All vulnerabilities
CVE-2026-32711GHSA-V856-2RF8-9F28PYSEC-2026-2266

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.2, 2.4.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • pydicom pydicom

    From 2.0.0-rc.1 · fixed in 3.0.2

  • pydicomPyPI

    From 3.0.0 · fixed in 3.0.2

  • pydicomPyPI

    fixed in 2.4.5

  • pydicomPyPI

    From 2.0.0 · fixed in 3.0.2

References 3

GitHub · pydicom/pydicom