Stack-based Buffer Overflow Affecting opensc/opensc package, versions [,0.27.0-rc1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd 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-15857159
  • published31 Mar 2026
  • disclosed30 Mar 2026
  • creditUnknown

Introduced: 30 Mar 2026

CVE-2025-49010  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the GET RESPONSE process. An attacker can execute arbitrary code or cause a denial of service by providing a specially crafted USB device or smart card that returns malicious responses to APDUs. This is only exploitable if the attacker has physical access to the computer at the time a user or administrator uses a token.

CVSS Base Scores

version 4.0
version 3.1