{"id":"UBUNTU-CVE-2021-41689","details":"DCMTK through 3.6.6 does not handle string copy properly. Sending specific requests to the dcmqrdb program, it would query its database and copy the result even if the result is null, which can incur a head-based overflow. An attacker can use it to launch a DoS attack.","modified":"2026-04-22T14:58:48.275785Z","published":"2022-06-28T13:15:00Z","related":["USN-5882-1","USN-7010-1"],"upstream":["CVE-2021-41689"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-41689"},{"type":"REPORT","url":"https://github.com/DCMTK/dcmtk/commit/5c14bf53fb42ceca12bbcc0016e8704b1580920d"},{"type":"REPORT","url":"https://github.com/DCMTK/dcmtk"},{"type":"REPORT","url":"https://github.com/DCMTK/dcmtk/commit/5c14bf53fb42ceca12bbcc0016e8704b1580920d"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5882-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-41689"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7010-1"}],"affected":[{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/dcmtk@3.6.1~20150924-5ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"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":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"dcmtk","binary_version":"3.6.1~20150924-5ubuntu0.1~esm1"},{"binary_name":"libdcmtk5","binary_version":"3.6.1~20150924-5ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41689.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/dcmtk@3.6.2-3ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.2-3ubuntu0.1~esm1"}]}],"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"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"dcmtk","binary_version":"3.6.2-3ubuntu0.1~esm1"},{"binary_name":"libdcmtk12","binary_version":"3.6.2-3ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41689.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dcmtk@3.6.4-2.1ubuntu0.1?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_name":"dcmtk","binary_version":"3.6.4-2.1ubuntu0.1"},{"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-41689.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/dcmtk@3.6.4-2.1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"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":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"dcmtk","binary_version":"3.6.4-2.1ubuntu0.1~esm1"},{"binary_name":"libdcmtk14","binary_version":"3.6.4-2.1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41689.json"}},{"package":{"name":"dcmtk","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/dcmtk@3.6.6-5ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"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":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"dcmtk","binary_version":"3.6.6-5ubuntu0.1~esm1"},{"binary_name":"libdcmtk16","binary_version":"3.6.6-5ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41689.json"}}],"schema_version":"1.7.5","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":"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":"medium"}]}