{"id":"UBUNTU-CVE-2021-41687","details":"DCMTK through 3.6.6 does not handle memory free properly. The program malloc a heap memory for parsing data, but does not free it when error in parsing. Sending specific requests to the dcmqrdb program incur the memory leak. An attacker can use it to launch a DoS attack.","modified":"2026-08-31T17:26:44.392573971Z","published":"2022-06-28T13:15:00Z","related":["USN-5882-1","USN-7010-1","USN-7010-2"],"upstream":["CVE-2021-41687"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-41687"},{"type":"REPORT","url":"https://github.com/DCMTK/dcmtk/commit/a9697dfeb672b0b9412c00c7d36d801e27ec85cb"},{"type":"REPORT","url":"https://github.com/DCMTK/dcmtk"},{"type":"REPORT","url":"https://github.com/DCMTK/dcmtk/commit/a9697dfeb672b0b9412c00c7d36d801e27ec85cb"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5882-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-41687"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7010-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7010-2"}],"affected":[{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/dcmtk?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.1~20150924-5ubuntu0.1~esm1"}]}],"versions":["3.6.0-15.1","3.6.1~20150629-5","3.6.1~20150924-4","3.6.1~20150924-5"],"ecosystem_specific":{"binaries":[{"binary_version":"3.6.1~20150924-5ubuntu0.1~esm1","binary_name":"dcmtk"},{"binary_name":"libdcmtk5","binary_version":"3.6.1~20150924-5ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41687.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/dcmtk?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.2-3ubuntu0.1~esm3"}]}],"versions":["3.6.2-2","3.6.2-2build1","3.6.2-3","3.6.2-3build1","3.6.2-3build2","3.6.2-3build3","3.6.2-3ubuntu0.1~esm1","3.6.2-3ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"dcmtk","binary_version":"3.6.2-3ubuntu0.1~esm3"},{"binary_name":"libdcmtk12","binary_version":"3.6.2-3ubuntu0.1~esm3"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41687.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dcmtk?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.4-2.1ubuntu0.1"}]}],"versions":["3.6.4-2.1","3.6.4-2.1build1","3.6.4-2.1build2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.6.4-2.1ubuntu0.1","binary_name":"dcmtk"},{"binary_name":"libdcmtk14","binary_version":"3.6.4-2.1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41687.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/dcmtk?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.4-2.1ubuntu0.1~esm1"}]}],"versions":["3.6.4-2.1","3.6.4-2.1build1","3.6.4-2.1build2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.6.4-2.1ubuntu0.1~esm1","binary_name":"dcmtk"},{"binary_name":"libdcmtk14","binary_version":"3.6.4-2.1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41687.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/dcmtk?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.6-5ubuntu0.1~esm1"}]}],"versions":["3.6.5-1","3.6.6-3ubuntu1","3.6.6-3ubuntu2","3.6.6-4","3.6.6-5"],"ecosystem_specific":{"binaries":[{"binary_name":"dcmtk","binary_version":"3.6.6-5ubuntu0.1~esm1"},{"binary_version":"3.6.6-5ubuntu0.1~esm1","binary_name":"libdcmtk16"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41687.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}