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.
- CVSS
- 7.8High
- Chance of exploitation (EPSS)
- 0.27%
- Published
- Nov 19, 2026
- In the news
- Not yet
What to do
A serious memory corruption flaw in Offis Dcmtk that needs access to the machine itself. Exploit code is public, so patch it soon.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Offis Dcmtk
- 3.7.1
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.
Affected products
Get alerts for these →Timeline 3
Latest change: cveForge/CVE-2026-133168: CVE-2026-133168 -- DCMTK 3.7.1 Heap Buffer Overflow in JPEG Encoder (RCE). CVSS 8.8 High. (Nov 23, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Mon, Nov 23, 2026
- Exploit codecveForge/CVE-2026-133168: CVE-2026-133168 -- DCMTK 3.7.1 Heap Buffer Overflow in JPEG Encoder (RCE). CVSS 8.8 High.GitHub (unverified) · 17:00 UTC
Thu, Nov 19, 2026
- Exploit codeLLCForge/CVE-2026-133168: CVE-2026-133168 -- DCMTK 3.7.1 Heap Buffer Overflow in JPEG Encoder (RCE). CVSS 8.8 High.GitHub (unverified) · 16:45 UTC
- CVECVE-2026-133168 published (CVSS 7.8)CVE Program · 15:17 UTC
Exploit code
Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.
- LLCForge/CVE-2026-133168: CVE-2026-133168 -- DCMTK 3.7.1 Heap Buffer Overflow in JPEG Encoder (RCE). CVSS 8.8 High.
GitHub, unverified · found Nov 19, 2026
- cveForge/CVE-2026-133168: CVE-2026-133168 -- DCMTK 3.7.1 Heap Buffer Overflow in JPEG Encoder (RCE). CVSS 8.8 High.
GitHub, unverified · found Nov 23, 2026
References 5
- github.com /DCMTK/dcmtk
- github.com /DCMTK/dcmtk/blob/DCMTK-3.7.1/dcmjpeg/libsrc/djcodece.cc#L1503-L1540
- github.com /DCMTK/dcmtk/commit/c22836c449bb81834fee5d883e9ebd9d7dab90b9
- support.dcmtk.org /redmine/issues/1298
- www.vulncheck.com /advisories/dcmtk-3.7.1-heap-buffer-overflow-via-jpeg-encoder-planar-configuration-conversion