| Title | OpenSC OpenSC 0.26.1 and earlier Buffer Overflow |
|---|
| Description | Vulnerability Basic Information
● Vulnerability Name: OpenSC pkcs11-tool Key Generation Module Input Validation Flaw Leading to Global Buffer Overflow
● Vulnerability Type: Buffer Overflow (CWE-120 / CWE-787)
● Affected Component: OpenSC (especially the pkcs11-tool tool)
● Affected Versions: OpenSC 0.26.1 and earlier
● Severity: Medium / High (depending on execution context)
● Attack Vector: Local / Physical
● Prerequisites: The attacker must craft a malicious PKCS#11 module to be loaded by the victim, or provide a malicious physical smart card device with customized firmware, and induce the victim to interact with it via pkcs11-tool, thereby triggering the test_kpgen_certwrite logic. |
|---|
| Source | ⚠️ https://github.com/OpenSC/OpenSC/issues/3682 |
|---|
| User | Fantasy (UID 69897) |
|---|
| Submission | 05/11/2026 10:08 (3 months ago) |
|---|
| Moderation | 05/31/2026 18:00 (20 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 367568 [OpenSC up to 0.26.1 pkcs11-tool Key Generation src/tools/pkcs11-tool.c test_kpgen_certwrite buffer overflow] |
|---|
| Points | 20 |
|---|