Improper Input Validation Affecting yubico/yubihsm-shell package, versions [,2.0.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.76% (76th 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 IDSNYK-UNMANAGED-YUBICOYUBIHSMSHELL-2367133
  • published26 Jan 2022
  • disclosed19 Oct 2020
  • creditUnknown

Introduced: 19 Oct 2020

CVE-2020-24388  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Improper Input Validation. An issue was discovered in the _send_secure_msg() function of yubihsm-shell through 2.0.2. The function does not validate the embedded length field of a message received from the device. This could lead to an oversized memcpy() call that will crash the running process. This could be used by an attacker to cause a denial of service.

CVSS Base Scores

version 3.1