Insufficient Session Expiration 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-2367131
  • published26 Jan 2022
  • disclosed19 Oct 2020
  • creditUnknown

Introduced: 19 Oct 2020

CVE-2020-24387  (opens in a new tab)
CWE-613  (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 Insufficient Session Expiration. An issue was discovered in the yh_create_session() function of yubihsm-shell through 2.0.2. The function does not explicitly check the returned session id from the device. An invalid session id would lead to out-of-bounds read and write operations in the session array. This could be used by an attacker to cause a denial of service attack.

CVSS Base Scores

version 3.1