Submit #825403: OpenSC OpenSC 0.26.1 and earlier Buffer Overflowinfo

TitleOpenSC OpenSC 0.26.1 and earlier Buffer Overflow
DescriptionVulnerability 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)
Submission05/11/2026 10:08 (3 months ago)
Moderation05/31/2026 18:00 (20 days later)
StatusAccepted
VulDB entry367568 [OpenSC up to 0.26.1 pkcs11-tool Key Generation src/tools/pkcs11-tool.c test_kpgen_certwrite buffer overflow]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!