CVE-2026-56445

pydicom pynetdicom Library Path Traversal

Published Jun 25, 2026 CVSS 4.0 · 8.8 High EPSS < 1% KEV · Not listed
Description
The qrscp application's C-STORE handler uses a specific instance from attacker-supplied DICOM datasets directly in os.path.join() without sanitization, allowing file writes to arbitrary paths.

Analysis

AI-generated

Technical impact

The qrscp application’s C‑STORE handler copies an attacker‑supplied path from a DICOM dataset into os.path.join() without sanitization, allowing the attacker to craft a file name that resolves to any filesystem location. This flaw is a classic path‑traversal weakness (CWE‑22) and enables the creation or overwriting of arbitrary files on the host. The consequence is a severe breach of confidentiality, integrity, or availability if critical files are targeted.

Affected Systems

Products affected are the pydicom and pynetdicom libraries that implement the version information is provided, implying that all releases containing this code path may be vulnerable and should be evaluated for the presence of the flaw.

Risk and Exploitability

The CVSS score of 8.8 assigns this vulnerability to high severity. The EPSS score is not available and the flaw is not listed in CISA’s KEV catalog, suggesting a moderate exploitation probability, but the potential impact remains significant. Likely attack vectors involve a remote, possibly untrusted, DICOM client that can send a specially crafted dataset to the target service, requiring the C‑STORE endpoint to be reachable from an external network.

Remediation

Vendor Workaround

The maintainer of pynetdicom has not responded to requests to work with CISA to mitigate this vulnerability. For update information, refer to the github page [https://github.com/pydicom/pynetdicom](https://github.com/pydicom/pynetdicom).


OpenCVE Recommended Actions

  • Upgrade the pydicom and pynetdicom libraries to a fixed release when one becomes available
  • Check the project's GitHub repository for updates or community‑issued patches
  • If an immediate upgrade is not feasible, restrict the DICOM C‑STORE service’s filesystem permissions or run it within a sandboxed environment to limit write access
  • As a temporary workaround, patch the code to sanitize the file name extracted from the DICOM dataset before passing it to os.path.join, ensuring it resolves only within an allowed base directory

Generated by OpenCVE AI on June 25, 2026 at 23:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pydicom
Pydicom pynetdicom Library
Vendors & Products Pydicom
Pydicom pynetdicom Library
Type Values Removed Values Added
Description The qrscp application's C-STORE handler uses a specific instance from attacker-supplied DICOM datasets directly in os.path.join() without sanitization, allowing file writes to arbitrary paths.
Title pydicom pynetdicom Library Path Traversal
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
icscert
Published
Updated
Jun 26, 2026, 1:05 PM
Reserved
Jun 22, 2026, 3:47 PM
Status
Deferred
Published
Jun 25, 2026, 9:16 PM
Modified
Oct 25, 2026, 10:10 PM