Description
Uncontrolled mutual recursion between DcmJSONReader::parseDataSet(), DcmJSONReader::parseElement() and DcmJSONReader::parseSequence() in dcmdata/libsrc/dcjsonrd.cc of OFFIS DCMTK 3.7.0 allows an attacker to cause a denial of service (stack exhaustion and process crash) via a crafted DICOM JSON document with deeply nested sequence (SQ) values. The json2dcm tool and any service that converts untrusted DICOM JSON (for example, DICOMweb payloads) with this reader are affected. The issue is fixed in commit cf955e64c35a1e07ba10698f639d5dcdec53b9d7.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OFFIS | DCMTK | 3.7.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | dcmtk | No fix yet | — |
| Debian 13 | dcmtk | No fix yet | — |
| Debian 12 | dcmtk | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | dcmtk | No fix yet | — |
| Ubuntu 26.04 LTS | dcmtk | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | dcmtk | No fix yet | — |
| Ubuntu Pro 22.04 LTS | dcmtk | No fix yet | — |
| Ubuntu Pro 20.04 LTS | dcmtk | No fix yet | — |
| Ubuntu Pro 18.04 LTS | dcmtk | No fix yet | — |
| Ubuntu Pro 16.04 LTS | dcmtk | No fix yet | — |
References
- DCMTK issue #1225 issue-tracking vendor-advisory
- Fix commit patch