4.4medium
An issue was discovered in the sendsecuremsg() function of Yubico yubihsm-shell through 2.0.3.
- Severity
- 4.4medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.61% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| yubico yubihsm-shell | up to 2.0.3 | NVD |
All scores
| NVD | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Se detectó un problema en la función _send_secure_msg() de Yubico yubihsm-shell versiones hasta de 2.0.3. La función no comprueba correctamente el campo de longitud insertado de un mensaje autenticado recibido del dispositivo. 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. Esto podría ser usado por un atacante para conllevar una denegación de servicio del lado del cliente. El proyecto yubihsm-shell está incluido en el producto YubiHSM 2 SDK
References
| https://github.com/Yubico/yubihsm-shell/releases | release-notes, third-party-advisory | |
| https://www.yubico.com/support/security-advisories/ysa-2021-01/ | vendor-advisory | |
| https://blog.inhq.net/posts/yubico-libyubihsm-vuln2 | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-27217 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-27217 changed 2026-06-17 | Public domain |