Improper Restriction of Operations within the Bounds of a Memory Buffer Affecting opensc/opensc package, versions [,0.24.0-rc1)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (17th 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-OPENSCOPENSC-5931364
  • published5 Oct 2023
  • disclosed25 Sept 2023
  • creditUnknown

Introduced: 25 Sep 2023

CVE-2023-40661  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade opensc/opensc to version 0.24.0-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Operations within the Bounds of a Memory Buffer due to the pkcs15-init enrollment tool. An attacker can exploit multiple memory issues, potentially leading to unauthorized access or disruption of service.

Note:

All of these issues require physical access to the computer at the time user or administrator would be enrolling the cards (generating keys and loading certificates, other card/token management) operations. The attack requires crafted USB device or smart card that would present the system with specially crafted responses to the APDUs so they are considered a high-complexity and low-severity. This issue is not exploitable just by using a PKCS#11 module as done in most of the end-user deployments.

CVSS Base Scores

version 3.1