DCMTK 3.7.1 Heap Buffer Overflow via JPEG Encoder Planar Configuration Conversion
- State
- Published
- Severity
- 8.5 High
- Published
- Nov 19, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 19, 2026
Description
OFFIS DCMTK 3.7.1 contains a heap buffer overflow vulnerability in togglePlanarConfiguration8 and togglePlanarConfiguration16 in djcodece.cc, which compute row offsets using rows instead of columns. Attackers can supply a crafted color-by-plane DICOM image with more rows than columns that is compressed with the true-lossless JPEG codec to corrupt heap memory, causing crashes and potentially code execution.
| Product | Versions |
|---|---|
| DCMTK OFFIS | 3.7.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.5 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-787 Out-of-bounds Write
References
- https://support.dcmtk.org/redmine/issues/1298Issue Tracker
- https://github.com/DCMTK/dcmtk/commit/c22836c449bb81834fee5d883e9ebd9d7dab90b9Patch
- https://github.com/DCMTK/dcmtk/blob/DCMTK-3.7.1/dcmjpeg/libsrc/djcodece.cc#L1503-L1540Technical Details
- https://github.com/DCMTK/dcmtkProduct Page
- VulnCheck Advisory: DCMTK 3.7.1 Heap Buffer Overflow via JPEG Encoder Planar Configuration ConversionThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.