OFFIS DCMTK versions 3.5.4 through 3.7.1 have an integer overflow vulnerability in the DJCodecEncoder::encodeTrueLossless function. This flaw occurs during size checks and can lead to a heap out-of-bounds read when processing specially crafted DICOM files with large Columns, Rows, and SamplesPerPixel values compressed using true-lossless JPEG. The vulnerability can cause the application to crash.
OFFIS DCMTK version 3.7.1 has a heap buffer overflow vulnerability in functions handling color-by-plane DICOM images compressed with the true-lossless JPEG codec. The flaw arises from incorrect computation of row offsets using rows instead of columns, allowing crafted images with more rows than columns to corrupt heap memory. This can cause application crashes and potentially enable code execution.
CVE-2026-44037 is a medium severity vulnerability in OFFIS DCMTK version 3.7.0 involving uncontrolled mutual recursion in the DcmJSONReader component. This flaw allows denial of service via crafted DICOM JSON documents with deeply nested sequences, causing stack exhaustion and process crashes. The issue affects the json2dcm tool and any service converting untrusted DICOM JSON using this reader. A fix has been implemented in commit cf955e64c35a1e07ba10698f639d5dcdec53b9d7.
CVE-2026-44034 is a heap-based out-of-bounds read vulnerability in OFFIS DCMTK version 3.7.0. It occurs in the DcmRLECodecDecoder::decodeFrame() function when processing crafted RLE Lossless DICOM files with pixel data fragments shorter than the expected 64-byte RLE header. This flaw allows reading up to 63 bytes of adjacent heap memory or may cause a crash. The issue affects applications decoding RLE images frame by frame but not the dcmdrle command-line tool. The vulnerability has a medium severity with a CVSS score of 4.8 and is fixed in a later commit.
A global out-of-bounds read in the Huffman decoder of the bundled IJG JPEG libraries (dcmjpeg/libijg8, libijg12 and libijg16) of OFFIS DCMTK 3.7.0 allows an attacker to read memory beyond the extend_test[] and extend_offset[] tables, causing incorrectly decoded pixel data or a crash, via a DICOM file with a crafted JPEG stream whose Huffman table defines a difference category above 15. Huffman symbol values are not range-checked unless DCMTK is built with DCMTK_ENABLE_STRICT_HUFFMAN_TABLE_CHECK, which is disabled by default. dcmdjpeg and any application that decompresses JPEG DICOM images with DCMTK are affected. The issue is fixed in commit d6ae1bc8d5b9ae9c7300013c8c85cc2ea0fd8cf5.
Uncontrolled mutual recursion between DcmXMLParseHelper::parseDataSet() and DcmXMLParseHelper::parseSequence() in the XML-to-DICOM converter (dcmdata/libdcxml/xml2dcm.cc) of OFFIS DCMTK 3.7.0 allows an attacker to cause a denial of service (stack exhaustion and process crash) via a crafted XML file with deeply nested sequence and item elements. The xml2dcm tool and any service that converts untrusted XML to DICOM with this code are affected. The issue is fixed in commit 87f256d73e30656a822bf7d76d1cf1d9bb693954.
Uncontrolled recursion in DcmDicomDir::moveRecordToTree() in dcmdata/libsrc/dcdicdir.cc of OFFIS DCMTK 3.7.0 allows an attacker to cause a denial of service (stack exhaustion and process crash) via a crafted DICOMDIR file with a deeply chained sequence of directory records linked through the Offset of Referenced Lower-Level Directory Entity attribute. Any application that opens the DICOMDIR is affected, including dcmgpdir and media viewers built on DCMTK. The issue is fixed in commit ca761f7f3dcaaddaa95be87cf5d736138d7c3a9f.
Uncontrolled recursion in XMLNode::ParseXMLElement() and XMLNode::emptyTheNode() in the bundled XML parser (ofstd/libsrc/ofxml.cc) of OFFIS DCMTK 3.7.0 allows an attacker to cause a denial of service (stack exhaustion and process crash) via a crafted XML document with deeply nested elements. The parser is reachable through dcmencap when encapsulating a CDA document, and through any application that calls OFXMLParser::parseFile() or OFXMLParser::parseString() on untrusted input. The issue is fixed in commit d12e350e687530eb41e2b0c860aff4d8c04e5941.
Uncontrolled recursion in DcmSequenceOfItems::read() and DcmItem::read() in the dcmdata library of OFFIS DCMTK 3.7.0 allows a remote, unauthenticated attacker to cause a denial of service (stack exhaustion and process crash) via a DICOM dataset containing deeply nested sequences (SQ elements). The dataset can be sent in a C-STORE request to storescp, dcmrecv, dcmqrscp, or any other DICOM service built on DCMTK, because the received dataset is parsed before any authentication takes place. Local tools such as dcmdump also crash when opening such a file. The issue is fixed in commit 885ff0f10372bd589b5f44cea974f28a3964cb0f, which adds a configurable sequence nesting depth limit (default 64).