cbcvebase.

Opensc Project Opensc vulnerabilities

55 known vulnerabilities affecting opensc_project/opensc.

Total CVEs
55
CISA KEV
0
Public exploits
1
Exploited in wild
0
Severity breakdown
HIGH7MEDIUM39LOW9

Vulnerabilities

Page 1 of 3
CVE-2021-34193P3HIGHCVSS 7.5fixed in 0.22.02023-08-22
CVE-2021-34193 [HIGH] CWE-787 CVE-2021-34193: Stack overflow vulnerability in OpenSC smart card middleware before 0.23 via crafted responses to AP Stack overflow vulnerability in OpenSC smart card middleware before 0.23 via crafted responses to APDUs.
nvdosv
CVE-2026-40528P3HIGHCVSS 7.8fixed in 0.27.02026-05-29
CVE-2026-40528 [HIGH] CWE-121 CVE-2026-40528: OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerabilit 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(keyb
nvd
CVE-2019-16058P3HIGHCVSS 7.5v0.2.0v0.3.02019-09-06
CVE-2019-16058 [HIGH] CWE-119 CVE-2019-16058: An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.
nvd
CVE-2010-4523P4HIGHCVSS 7.2≥ 0, < 0.11.13-1.12011-01-07
CVE-2010-4523 [HIGH] CVE-2010-4523: Multiple stack-based buffer overflows in libopensc in OpenSC 0 Multiple stack-based buffer overflows in libopensc in OpenSC 0.11.13 and earlier allow physically proximate attackers to execute arbitrary code via a long serial-number field on a smart card, related to (1) card-acos5.c, (2) card-atrust-acos.c, and (3) card-starcos.c.
osv
CVE-2009-0368P4LOWCVSS 2.1PoC≥ 0, < 0.11.7-12009-03-02
CVE-2009-0368 [LOW] CVE-2009-0368: OpenSC before 0 OpenSC before 0.11.7 allows physically proximate attackers to bypass intended PIN requirements and read private data objects via a (1) low level APDU command or (2) debugging tool, as demonstrated by reading the 4601 or 4701 file with the opensc-explorer or opensc-tool program.
osv
CVE-2026-40510P4MEDIUMCVSS 6.8fixed in 0.27.02026-05-29
CVE-2026-40510 [MEDIUM] CWE-121 CVE-2026-40510: OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in 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 r
nvd
CVE-2023-2977P4HIGHCVSS 7.1v0.23.0vopensc-0.23.02023-06-01
CVE-2023-2977 [HIGH] CWE-119 CVE-2023-2977: A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs1 A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The attacker can supply a smart card package with malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for 2 tags, where remaining length is wrongly caculated due to moved starting pointer
nvdosv
CVE-2025-66215P4MEDIUMCVSS 6.8fixed in 0.27.02026-03-30
CVE-2025-66215 [MEDIUM] CWE-121 CVE-2025-66215: OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow WRITE in card-oberthur. The attack requires crafted USB device or smart card that would present the system with specially crafted responses
nvdosv
CVE-2025-49010P4MEDIUMCVSS 6.8fixed in 0.27.02026-03-30
CVE-2025-49010 [MEDIUM] CWE-121 CVE-2025-49010: OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow write in GET RESPONSE. The attack requires crafted USB device or smart card that would present the system with specially crafted responses
nvdosv
CVE-2019-6502P4HIGHCVSS 7.5v0.19.02019-01-22
CVE-2019-6502 [HIGH] CWE-401 CVE-2019-6502: sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a cal sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.
nvdosv
CVE-2025-66038P4MEDIUMCVSS 6.8fixed in 0.27.02026-03-30
CVE-2025-66038 [MEDIUM] CWE-126 CVE-2025-66038: OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_fin OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag. In compact-TLV, a single byte encodes the tag (high nibble) and value length (low nibble). With a 1-byte buffer {0x0A}, the encoded element claims tag=0 and length=10 but no value bytes follow. Call
nvdosv
CVE-2023-5992P4MEDIUMCVSS 5.9fixed in 0.25.02024-01-31
CVE-2023-5992 [MEDIUM] CWE-203 CVE-2023-5992: A vulnerability was found in OpenSC where PKCS#1 encryption padding removal is not implemented as si A vulnerability was found in OpenSC where PKCS#1 encryption padding removal is not implemented as side-channel resistant. This issue may result in the potential leak of private data.
nvdosv
CVE-2009-1603P4HIGHCVSS 7.5≥ 0, < 0.11.82009-05-11
CVE-2009-1603 [HIGH] CVE-2009-1603: src/tools/pkcs11-tool src/tools/pkcs11-tool.c in pkcs11-tool in OpenSC 0.11.7, when used with unspecified third-party PKCS#11 modules, generates RSA keys with incorrect public exponents, which allows attackers to read the cleartext form of messages that were intended to be encrypted.
osv
CVE-2023-40660P4MEDIUMCVSS 6.6≤ 0.23.02023-11-06
CVE-2023-40660 [MEDIUM] CWE-287 CVE-2023-40660: A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenti A flaw was found in OpenSC packages that allow a potential PIN bypass. When a token/card is authenticated by one process, it can perform cryptographic operations in other processes when an empty zero-length pin is passed. This issue poses a security risk, particularly for OS logon/screen unlock and for small, permanently connected tokens to computer
nvdosv
CVE-2025-66037P4MEDIUMCVSS 6.8fixed in 0.27.02026-03-30
CVE-2025-66037 [MEDIUM] CWE-125 CVE-2025-66037: OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted input to the fuzz_pkcs15_reader harness causes OpenSC to perform an out-of-bounds heap read in the X.509/SPKI handling path. Specifically, sc_pkcs15_pubkey_from_spki_fields() allocates a zero-length buffer and then reads one byte past the end of that
nvdosv
CVE-2023-40661P4MEDIUMCVSS 6.4≤ 0.23.02023-11-06
CVE-2023-40661 [MEDIUM] CWE-119 CVE-2023-40661: Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card Several memory vulnerabilities were identified within the OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user or administrator enrolls cards. To take advantage of these flaws, an attacker must have physical access to the computer system and employ a custom-crafted USB device or smart card to manipulate responses
nvdosv
CVE-2021-42781P4MEDIUMCVSS 5.3fixed in 0.22.0vopensc 0.22.02022-04-18
CVE-2021-42781 [MEDIUM] CWE-119 CVE-2021-42781: Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that cou Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially crash programs using the library.
nvdosv
CVE-2021-42779P4MEDIUMCVSS 5.3fixed in 0.22.0vopensc 0.22.02022-04-18
CVE-2021-42779 [MEDIUM] CWE-416 CVE-2021-42779: A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid. A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
nvdosv
CVE-2021-42782P4MEDIUMCVSS 5.3fixed in 0.22.0vopensc 0.22.02022-04-18
CVE-2021-42782 [MEDIUM] CWE-119 CVE-2021-42782: Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library.
nvdosv
CVE-2021-42780P4MEDIUMCVSS 5.3fixed in 0.22.0vopensc 0.22.02022-04-18
CVE-2021-42780 [MEDIUM] CWE-252 CVE-2021-42780: A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library.
nvdosv
Opensc Project Opensc vulnerabilities | cvebase