{"id":"CVE-2021-27217","state":"PUBLISHED","title":"An issue was discovered in the _send_secure_msg() function of Yubico yubihsm-shell through 2.0.3. The function does not correctly validate the embedded length field of an authentic","description":"An issue was discovered in the _send_secure_msg() function of Yubico yubihsm-shell through 2.0.3. The function does not correctly validate the embedded length field of an authenticated message received from the device. Out-of-bounds reads performed by aes_remove_padding() can crash the running process, depending on the memory layout. This could be used by an attacker to cause a client-side denial of service. The yubihsm-shell project is included in the YubiHSM 2 SDK product.","publishedAt":"2021-03-04T17:45:33.000Z","updatedAt":"2024-08-03T20:40:47.490Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/Yubico/yubihsm-shell/releases","https://www.yubico.com/support/security-advisories/ysa-2021-01/","https://blog.inhq.net/posts/yubico-libyubihsm-vuln2"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:15.637Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/27xxx/CVE-2021-27217.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-27217","state":"PUBLISHED","datePublished":"2021-03-04T17:45:33.000Z","dateUpdated":"2024-08-03T20:40:47.490Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-02-15T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"An issue was discovered in the _send_secure_msg() function of Yubico yubihsm-shell through 2.0.3. The function does not correctly validate the embedded length field of an authenticated message received from the device. Out-of-bounds reads performed by aes_remove_padding() can crash the running process, depending on the memory layout. This could be used by an attacker to cause a client-side denial of service. The yubihsm-shell project is included in the YubiHSM 2 SDK product."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/Yubico/yubihsm-shell/releases","tags":["x_refsource_MISC"]},{"url":"https://www.yubico.com/support/security-advisories/ysa-2021-01/","tags":["x_refsource_CONFIRM"]},{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-03-16T16:27:17.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-27217","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"An issue was discovered in the _send_secure_msg() function of Yubico yubihsm-shell through 2.0.3. The function does not correctly validate the embedded length field of an authenticated message received from the device. Out-of-bounds reads performed by aes_remove_padding() can crash the running process, depending on the memory layout. This could be used by an attacker to cause a client-side denial of service. The yubihsm-shell project is included in the YubiHSM 2 SDK product."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/Yubico/yubihsm-shell/releases","refsource":"MISC","url":"https://github.com/Yubico/yubihsm-shell/releases"},{"name":"https://www.yubico.com/support/security-advisories/ysa-2021-01/","refsource":"CONFIRM","url":"https://www.yubico.com/support/security-advisories/ysa-2021-01/"},{"name":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2","refsource":"MISC","url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/Yubico/yubihsm-shell/releases","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.yubico.com/support/security-advisories/ysa-2021-01/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T20:40:47.490Z"}}]}}}