Buffer Overflow Affecting opensc-libs package, versions *


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating.

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-CENTOS10-OPENSCLIBS-17377837
  • published19 Jun 2026
  • disclosed29 May 2026

Introduced: 29 May 2026

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

How to fix?

There is no fixed version for Centos:10 opensc-libs.

NVD Description

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

OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the do_key_value() function in src/pkcs15init/profile.c that allows attackers to corrupt memory by supplying a crafted profile configuration file. During pkcs15-init invocation, a key value entry beginning with '=' followed by more than sizeof(keybuf) characters is copied into keybuf via memcpy without a length check, causing both stack and heap buffer overruns.

CVSS Base Scores

version 3.1