Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-40510— OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c

CVSS 3.8 · Low EPSS 0.22% · P12

Possible ATT&CK Techniques 1AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 2

VendorProductVersion RangeStatus
OpenSCOpenSC< 0.27.0-rc1affected
< 3f24f0b48a481a8cf2e46059d8238a283ddc1c13affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-40510

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
栈缓冲区溢出
Source: CVE Program / CVE List V5
Vulnerability Title
OpenSC 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
OpenSC是OpenSC开源的一款开源的智能卡工具和中间件。 OpenSC 0.27.0-rc1之前版本存在安全漏洞,该漏洞源于src/libopensc/card-piv.c中的piv_process_history()函数存在栈缓冲区溢出漏洞,允许物理存在的攻击者通过提供特制的PIV智能卡或USB设备,在Key History Object ASN.1响应中返回超过118字节的URL字段,从而触发内存损坏。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
OpenSCOpenSC 0 ~ 0.27.0-rc1 -

II. Public POCs for CVE-2026-40510

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40510

登录查看更多情报信息。

Patches & Fixes for CVE-2026-40510 (2)

Vendor Advisories for CVE-2026-40510 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-40510

No comments yet


Leave a comment