{"id":"CVE-2021-32489","aliases":["EUVD-2021-19335","GHSA-cmx7-7xm2-m73q"],"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 because response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.","severity":{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AC:H/AV:N/A:H/C:N/I:N/PR:H/S:U/UI:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00922,"percentile":0.60576,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-190"],"published":"2021-05-10T21:20:49Z","modified":"2026-10-24T10:30:52Z","products":[{"vendor":"yubico","product":"yubihsm-shell"}],"references":[{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2/#second-attack-variant-cve-pending","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32489"},{"url":"https://github.com/advisories/GHSA-cmx7-7xm2-m73q"}],"sources":{"cve":[{"id":"CVE-2021-32489","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 because response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.","status":"published","published":"2021-05-10T21:20:49Z","modified":"2024-08-03T23:17:29.56Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AC:H/AV:N/A:H/C:N/I:N/PR:H/S:U/UI:N","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:33:07.014772Z"}],"euvd":[{"id":"EUVD-2021-19335","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 because response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.","status":"published","published":"2021-05-10T21:20:49Z","modified":"2024-08-03T23:17:29Z","cvss":[{"version":"3.1","score":4.4,"vector":"CVSS:3.1/AC:H/AV:N/A:H/C:N/I:N/PR:H/S:U/UI:N","level":"medium"}],"updated_at":"2026-11-03T03:24:36.852603Z"}],"ghsa":[{"id":"GHSA-cmx7-7xm2-m73q","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 because response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.","status":"published","published":"2022-05-24T19:02:11Z","modified":"2023-01-29T05:06:40Z","cwes":["CWE-190"],"updated_at":"2026-11-02T14:46:04.961867Z"}],"nvd":[{"id":"CVE-2021-32489","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 because response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.","status":"published","published":"2021-05-10T22:15:06.213Z","modified":"2026-06-17T03:53:03.05Z","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":"secondary"},{"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-190"],"updated_at":"2026-11-02T14:06:53.343329Z"}],"osv":[{"id":"CVE-2021-32489","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 because response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.","status":"published","published":"2021-05-10T22:15:06.213Z","modified":"2026-10-24T10:30:52.44019512Z","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:19.793849Z"}]}}
