Description
DCMTK through 3.7.0 contains a heap over-read vulnerability in ConcatenationLoader that copies pixel data frames without validating the PixelData buffer length against the declared NumberOfFrames. Attackers can craft malicious DICOM instances declaring more frames than the buffer contains to trigger heap over-reads that crash the application or leak adjacent heap memory.
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 Redmine Issue #1281 issue-tracking
- Fixed heap over-read in ConcatenationLoader patch
- Validate buffer length in extractBinaryFrames patch
- https://github.com/DCMTK/dcmtk/blob/ccfd10b84ff3c9a40b7b331698aedf06d421fc43/dcmfg/libsrc/concatenationloader.cc#L334-L360 technical-description
- https://github.com/DCMTK/dcmtk/blob/ccfd10b84ff3c9a40b7b331698aedf06d421fc43/dcmfg/libsrc/concatenationloader.cc#L399-L430 technical-description
- https://github.com/DCMTK/dcmtk product
- VulnCheck Advisory: DCMTK through 3.7.0 Heap Over-read via NumberOfFrames third-party-advisory