Stack-based Buffer Overflow Affecting opensc package, versions <0.26.1-160000.4.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.25% (16th 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-SLES1600-OPENSC-20256513
  • published29 Sept 2026
  • disclosed9 Sept 2026

Introduced: 9 Sep 2026

NewCVE-2026-40510  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade SLES:16.0.0 opensc to version 0.26.1-160000.4.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 SLES. See How to fix? for SLES:16.0.0 relevant fixed versions and status.

OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_process_history() in src/libopensc/card-piv.c that allows physically present attackers to trigger memory corruption by presenting a crafted PIV smart card or USB device returning a URL field longer than 118 bytes in the Key History Object ASN.1 response.

CVSS Base Scores

version 3.1