medium6.8
CVE-2026-133167
OFFIS DCMTK 3.5.4 through 3.7.1 contains an integer overflow in DJCodecEncoder::encodeTrueLossless size checks that allows attackers to trigger a heap out-of-b…
Impact
OFFIS DCMTK 3.5.4 through 3.7.1 contains an integer overflow in DJCodecEncoder::encodeTrueLossless size checks that allows attackers to trigger a heap out-of-bounds read. Attackers can supply a crafted DICOM file with large Columns, Rows and SamplesPerPixel values that, when compressed with true-lossless JPEG, crashes the application.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of outages.
Affected products · OFFIS
| Product | Affected versions |
|---|---|
| DCMTK | from 3.5.4 through 3.7.1 Version 3.5.4 ≤3.7.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://support.dcmtk.org/redmine/issues/1300
- https://github.com/DCMTK/dcmtk/commit/f9fbc4f3687a43e8342d85ef5584edf6f15f9fc9
- https://github.com/DCMTK/dcmtk/blob/DCMTK-3.7.1/dcmjpeg/libsrc/djcodece.cc#L598
- https://github.com/DCMTK/dcmtk
- https://www.vulncheck.com/advisories/offis-dcmtk-3.5.4-through-3.7.1-heap-out-of-bounds-read-via-encodetruelossless
- https://github.com/advisories/GHSA-4p5h-7qh4-cpm9
- https://nvd.nist.gov/vuln/detail/CVE-2026-133167