PYSEC-2026-2266

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pydicom/PYSEC-2026-2266.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2266
Aliases
Published
2026-03-20T02:16:33.600Z
Modified
2026-07-13T07:15:41.176781370Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

PyPI / pydicom

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
3.0.2

Affected versions

2.*
2.0.0
2.1.0
2.1.1
2.1.2
2.2.0rc1
2.2.0
2.2.1
2.2.2
2.3.0
2.3.1
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
3.*
3.0.0rc1
3.0.0
3.0.1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/pydicom/PYSEC-2026-2266.yaml"