{"id":"CVE-2021-27217","aliases":["EUVD-2021-13982","GHSA-2xj6-87qq-8g95"],"status":"published","title":"An issue was discovered in the _send_secure_msg() function of Yubico yubihsm-shell through 2.0.3....","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.","severity":{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01595,"percentile":0.76042,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-125"],"published":"2021-03-04T17:45:33Z","modified":"2026-10-20T10:54:35Z","products":[{"vendor":"yubico","product":"yubihsm-shell"}],"references":[{"url":"https://github.com/Yubico/yubihsm-shell/releases","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory"]},{"url":"https://www.yubico.com/support/security-advisories/ysa-2021-01/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27217"},{"url":"https://github.com/advisories/GHSA-2xj6-87qq-8g95"}],"sources":{"cve":[{"id":"CVE-2021-27217","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.","status":"published","published":"2021-03-04T17:45:33Z","modified":"2024-08-03T20:40:47.49Z","updated_at":"2026-11-02T14:33:04.679189Z"}],"euvd":[{"id":"EUVD-2021-13982","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.","status":"published","published":"2021-03-04T17:45:33Z","modified":"2024-08-03T20:40:47Z","updated_at":"2026-11-03T03:24:49.808499Z"}],"ghsa":[{"id":"GHSA-2xj6-87qq-8g95","title":"An issue was discovered in the _send_secure_msg() function of Yubico yubihsm-shell through 2.0.3....","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.","status":"published","published":"2022-05-24T17:43:42Z","modified":"2023-01-29T05:05:56Z","cwes":["CWE-125"],"updated_at":"2026-11-02T14:45:54.702484Z"}],"nvd":[{"id":"CVE-2021-27217","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.","status":"published","published":"2021-03-04T18:15:14.05Z","modified":"2026-06-17T03:44:29.127Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:N/A:P","level":"low","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:06:50.399901Z"}],"osv":[{"id":"CVE-2021-27217","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.","status":"published","published":"2021-03-04T18:15:14.05Z","modified":"2026-10-20T10:54:35.10876293Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:18.778776Z"}]}}
