{"id":"CVE-2026-133168","summary":"DCMTK 3.7.1 Heap Buffer Overflow via JPEG Encoder Planar Configuration Conversion","details":"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.","modified":"2026-11-19T16:00:12.691419835Z","published":"2026-11-19T14:16:27.522Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133168.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-787"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133168.json"},{"type":"PACKAGE","url":"https://github.com/DCMTK/dcmtk"},{"type":"ARTICLE","url":"https://github.com/DCMTK/dcmtk/blob/DCMTK-3.7.1/dcmjpeg/libsrc/djcodece.cc#L1503-L1540"},{"type":"FIX","url":"https://github.com/DCMTK/dcmtk/commit/c22836c449bb81834fee5d883e9ebd9d7dab90b9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133168"},{"type":"REPORT","url":"https://support.dcmtk.org/redmine/issues/1298"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/dcmtk-3.7.1-heap-buffer-overflow-via-jpeg-encoder-planar-configuration-conversion"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dcmtk/dcmtk","events":[{"introduced":"108acdae424d6999b2e398243938d8c563315ecf"},{"last_affected":"108acdae424d6999b2e398243938d8c563315ecf"},{"fixed":"c22836c449bb81834fee5d883e9ebd9d7dab90b9"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"3.7.1"},{"last_affected":"3.7.1"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"c22836c449bb81834fee5d883e9ebd9d7dab90b9"}]}]}}],"versions":["3.7.1","DCMTK-3.7.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133168.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}