Out-of-bounds Write Affecting opensc package, versions <0.22.0-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
2.87% (86th 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-ECHOLATEST-OPENSC-20360795
  • published1 Oct 2026
  • disclosed18 Apr 2022

Introduced: 18 Apr 2022

CVE-2021-42781  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Echo:latest opensc to version 0.22.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream opensc package and not the opensc package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially crash programs using the library.

CVSS Base Scores

version 3.1