{"id":"CVE-2021-27217","aliases":["CVE-2021-27217"],"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. 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.","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. 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.","source":"cvelist"},{"lang":"es","text":"Se detectó un problema en la función _send_secure_msg() de Yubico yubihsm-shell versiones hasta de 2.0.3.&#xa0;La función no comprueba correctamente el campo de longitud insertado de un mensaje autenticado recibido del dispositivo.&#xa0;Lecturas fuera de límites llevadas a cabo por la función aes_remove_padding() pueden bloquear el proceso en ejecución, dependiendo del diseño de la memoria.&#xa0;Esto podría ser usado por un atacante para conllevar una denegación de servicio del lado del cliente.&#xa0;El proyecto yubihsm-shell está incluido en el producto YubiHSM 2 SDK","source":"nvd"}],"published":"2021-03-04T17:45:33.000Z","modified":"2026-06-17T03:44:29.127Z","severity":{"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"},"severities":[{"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-125"],"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://github.com/Yubico/yubihsm-shell/releases","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.yubico.com/support/security-advisories/ysa-2021-01/","tags":["vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://blog.inhq.net/posts/yubico-libyubihsm-vuln2","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-27217","url":"https://www.cve.org/CVERecord?id=CVE-2021-27217","licence":"CVE Terms of Use","modified":"2024-08-03T20:40:47.490Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-27217","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27217","licence":"Public domain","modified":"2026-06-17T03:44:29.127Z"}],"updatedAt":"2026-11-25T22:58:00.141Z","epss":{"score":0.01614,"percentile":0.76702,"date":"2026-12-01T12:00:22.000Z"}}