製品・ソフトウェアに関する情報
opensc projectのopenscにおけるスタックベースのバッファオーバーフローの脆弱性
Title opensc projectのopenscにおけるスタックベースのバッファオーバーフローの脆弱性
Summary

OpenSC 0.27.0-rc1 より前のバージョンには、コミット 3f24f0b で修正された src/libopensc/card-piv.c 内の piv_process_history() にスタックバッファオーバーフローの脆弱性が含まれていました。この脆弱性により、物理的に存在する攻撃者が改ざんされた PIV スマートカードまたは USB デバイスを提示し、118 バイトを超える URL フィールドを返すことでメモリ破損を引き起こす可能性があります。

Possible impacts ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 29, 2026, midnight
Registration Date June 5, 2026, 10:47 a.m.
Last Update June 5, 2026, 10:47 a.m.
CVSS3.0 : 警告
Score 6.8
Vector CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected System
opensc project
opensc 0.27.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月05日]
  掲載
June 5, 2026, 10:47 a.m.

NVD Vulnerability Information
CVE-2026-40510
Summary

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.

Publication Date May 29, 2026, 11:16 p.m.
Registration Date May 30, 2026, 4:14 a.m.
Last Update June 3, 2026, 11:30 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:* 0.27.0
Related information, measures and tools
Common Vulnerabilities List