pydicom: Path traversal in FileSet/DICOMDIR ReferencedFileID allows file access outside the File-set root
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pydicom | pydicom | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pydicom | Pydicom |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-v856-2rf8-9f28 | pydicom has a path traversal in FileSet/DICOMDIR ReferencedFileID allows file access outside the File-set root |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.296% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:pydicom:pydicom:*:*:*:*:*:python:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pydicom
Pydicom pydicom |
|
| Vendors & Products |
Pydicom
Pydicom pydicom |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | pydicom: Path traversal in FileSet/DICOMDIR ReferencedFileID allows file access outside the File-set root | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV3_1
|