CVE-2022-2119 OFFIS DCMTK Path Traversal

High 7.5 Published Updated

Attackers can exploit a path traversal flaw in the DCMTK SCP to write DICOM files to arbitrary directories, potentially leading to remote code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-2119?

CVE-2022-2119 is a high-severity path traversal vulnerability in OFFIS DCMTK, published on 24 Jun 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

OFFIS DCMTK's (All versions prior to 3.6.7) service class provider (SCP) is vulnerable to path traversal, allowing an attacker to write DICOM files into arbitrary directories under controlled names. This could allow remote code execution.

Weakness: CWE-22

Which versions are affected by CVE-2022-2119?

It affects 1 product.

Products include Offis Dcmtk.

How do I fix CVE-2022-2119?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-2119 being exploited?

There is no known exploitation of CVE-2022-2119 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-2119, GHSA-5pjf-38m2-65rx, UBUNTU-CVE-2022-2119, openSUSE-SU-2024:12383-1.

Is CVE-2022-2119 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free