Advisory

PYSEC-2026-2266

Also known as: CVE-2026-32711, GHSA-v856-2rf8-9f28

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-03-20 02:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

pydicom

PyPI · All systems

Affected

  • introduced 2.0.0, fixed 3.0.2 (ecosystem)

Fixed versions

3.0.2

Fix

  • Fixed version 3.0.2
    pip install --upgrade pydicom==3.0.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences