Out-of-bounds Read Affecting yubico/yubihsm-shell package, versions [,2.1.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.6% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-YUBICOYUBIHSMSHELL-2367134
  • published26 Jan 2022
  • disclosed4 Mar 2021
  • creditUnknown

Introduced: 4 Mar 2021

CVE-2021-27217  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade yubico/yubihsm-shell to version 2.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. 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.

CVSS Base Scores

version 3.1