Buffer Overflow Affecting opensc/opensc package, versions [,0.27.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th 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-17429026
  • published23 Jun 2026
  • disclosed29 May 2026
  • creditNicholas Carlini

Introduced: 29 May 2026

CVE-2026-40528  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade opensc/opensc to version 0.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow in the do_key_value function when processing a crafted profile configuration file. An attacker can corrupt memory by supplying a specially crafted configuration file to the pkcs15-init utility, potentially leading to denial of service or unpredictable system behavior.

CVSS Base Scores

version 4.0
version 3.1