{"id":"CVE-2021-32489","aliases":["CVE-2021-32489"],"related":[],"kind":"vulnerability","state":"published","title":"An issue was discovered in the sendsecuremsg() function of Yubico yubihsm-shell through 2.0.3.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se detectó un problema en la función _send_secure_msg() de Yubico yubihsm-shell versiones hasta 2.0.3.&#xa0;La función no comprueba correctamente el campo de longitud insertado de un mensaje autenticado recibido del dispositivo porque response_msg.st.len=8 puede ser aceptado pero desencadena un desbordamiento de enteros, lo que causa a CRYPTO_cbc128_decrypt (en OpenSSL) encuentre un búfer de tamaño insuficiente y experimente un fallo de segmentación.&#xa0;El proyecto yubihsm-shell está incluido en el producto YubiHSM 2 SDK","source":"nvd"}],"published":"2021-05-10T21:20:49.000Z","modified":"2026-06-17T03:53:03.050Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:H/AV:N/A:H/C:N/I:N/PR:H/S:U/UI:N","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AC:H/AV:N/A:H/C:N/I:N/PR:H/S:U/UI:N","score":4.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:N/A:P","score":3.5,"rating":"LOW"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.0.3"}],"vendor":"yubico","product":"yubihsm-shell","cpe":"cpe:2.3:a:yubico:yubihsm-shell:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2/#second-attack-variant-cve-pending","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32489","url":"https://www.cve.org/CVERecord?id=CVE-2021-32489","licence":"CVE Terms of Use","modified":"2024-08-03T23:17:29.560Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32489","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32489","licence":"Public domain","modified":"2026-06-17T03:53:03.050Z"}],"updatedAt":"2026-11-25T22:58:01.264Z","epss":{"score":0.00922,"percentile":0.58609,"date":"2026-11-30T12:00:22.000Z"}}