CVE-2021-27217
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
yubico yubihsm-shellup to 2.0.3NVD

All scores

NVD4.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
NVD3.5low CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-27217 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-27217 changed 2026-06-17Public domain