Out-of-bounds write in YubiHSM2 SDK and yubihsm-shell - CVE-2021-43399

 

Out-of-bounds write in YubiHSM2 SDK and yubihsm-shell - CVE-2021-43399

Published: December 8, 2021


Vulnerability identifier: #VU58706
CSH Severity: Low
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2021-43399
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
YubiHSM2 SDK
yubihsm-shell
Software vendor:
Yubico

Description

The vulnerability allows a local user to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error in the yh_com_sign_ssh_certificate() function of libyubihsm in YubiHSM 2 SDK. A local user can pass specially crafted input via the ‘certify’ command to yubihsm-shell or via the “-a sign-ssh-certificate” command-line flag and crash the running process.


Remediation

Install updates from vendor's website.

External links