Opensc Openscproject Opensc

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in Openscproject Opensc.

By the Year

In 2025 there have been 0 vulnerabilities in Openscproject Opensc. Last year, in 2024 Opensc had 9 security vulnerabilities published. Right now, Opensc is on track to have less security vulnerabilities in 2025 than it did last year.




Year Vulnerabilities Average Score
2025 0 0.00
2024 9 4.00
2023 5 6.28
2022 5 5.30
2021 0 0.00
2020 4 5.83
2019 6 6.32
2018 13 6.29

It may take a day or so for new Opensc vulnerabilities to show up in the stats or in the list of recent security vulnerabilties. Additionally vulnerabilities may be tagged under a different product or component name.

Recent Openscproject Opensc Security Vulnerabilities

A heap-based buffer overflow vulnerability was found in the libopensc OpenPGP driver

CVE-2024-8443 2.9 - Low - September 10, 2024

A heap-based buffer overflow vulnerability was found in the libopensc OpenPGP driver. A crafted USB device or smart card with malicious responses to the APDUs during the card enrollment process using the `pkcs15-init` tool may lead to out-of-bound rights, possibly resulting in arbitrary code execution.

Memory Corruption

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK

CVE-2024-45619 4.3 - Medium - September 03, 2024

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. When buffers are partially filled with data, initialized parts of the buffer can be incorrectly accessed.

Classic Buffer Overflow

A vulnerability was found in the pkcs15-init tool in OpenSC

CVE-2024-45620 3.9 - Low - September 03, 2024

A vulnerability was found in the pkcs15-init tool in OpenSC. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. When buffers are partially filled with data, initialized parts of the buffer can be incorrectly accessed.

Classic Buffer Overflow

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK

CVE-2024-45615 3.9 - Low - September 03, 2024

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. The problem is missing initialization of variables expected to be initialized (as arguments to other functions, etc.).

Use of Uninitialized Resource

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK

CVE-2024-45616 3.9 - Low - September 03, 2024

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. The following problems were caused by insufficient control of the response APDU buffer and its length when communicating with the card.

Use of Uninitialized Resource

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK

CVE-2024-45617 3.9 - Low - September 03, 2024

A vulnerability was found in OpenSC, OpenSC tools, PKCS#11 module, minidriver, and CTK. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. Insufficient or missing checking of return values of functions leads to unexpected work with variables that have not been initialized.

Use of Uninitialized Resource

A vulnerability was found in pkcs15-init in OpenSC

CVE-2024-45618 3.9 - Low - September 03, 2024

A vulnerability was found in pkcs15-init in OpenSC. An attacker could use a crafted USB Device or Smart Card, which would present the system with a specially crafted response to APDUs. Insufficient or missing checking of return values of functions leads to unexpected work with variables that have not been initialized.

Use of Uninitialized Resource

The use-after-free vulnerability was found in the AuthentIC driver in OpenSC packages

CVE-2024-1454 3.4 - Low - February 12, 2024

The use-after-free vulnerability was found in the AuthentIC driver in OpenSC packages, occuring in the card enrolment process using pkcs15-init when a user or administrator enrols or modifies cards. An attacker must have physical access to the computer system and requires a crafted USB device or smart card to present the system with specially crafted responses to the APDUs, which are considered high complexity and low severity. This manipulation can allow for compromised card management operations during enrolment.

Dangling pointer

A vulnerability was found in OpenSC where PKCS#1 encryption padding removal is not implemented as side-channel resistant

CVE-2023-5992 5.9 - Medium - January 31, 2024

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.

Side Channel Attack

A flaw was found in OpenSC packages that allow a potential PIN bypass

CVE-2023-40660 6.6 - Medium - November 06, 2023

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 computers. Additionally, the token can internally track login status. This flaw allows an attacker to gain unauthorized access, carry out malicious actions, or compromise the system without the user's awareness.

authentification

An out-of-bounds read vulnerability was found in OpenSC packages within the MyEID driver when handling symmetric key encryption

CVE-2023-4535 3.8 - Low - November 06, 2023

An out-of-bounds read vulnerability was found in OpenSC packages within the MyEID driver when handling symmetric key encryption. Exploiting this flaw requires an attacker to have physical access to the computer and a specially crafted USB device or smart card. This flaw allows the attacker to manipulate APDU responses and potentially gain unauthorized access to sensitive data, compromising the system's security.

Out-of-bounds Read

Several memory vulnerabilities were identified within the OpenSC packages

CVE-2023-40661 6.4 - Medium - November 06, 2023

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 to APDUs. This manipulation can potentially allow compromise key generation, certificate loading, and other card management operations during enrollment.

Buffer Overflow

Stack overflow vulnerability in OpenSC smart card middleware before 0.23

CVE-2021-34193 7.5 - High - August 22, 2023

Stack overflow vulnerability in OpenSC smart card middleware before 0.23 via crafted responses to APDUs.

Memory Corruption

A vulnerbility was found in OpenSC

CVE-2023-2977 7.1 - High - June 01, 2023

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. This leads to possible heap-based buffer oob read. In cases where ASAN is enabled while compiling this causes a crash. Further info leak or more damage is possible.

Out-of-bounds Read

Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c

CVE-2021-42781 5.3 - Medium - April 18, 2022

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.

Memory Corruption

Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places

CVE-2021-42782 5.3 - Medium - April 18, 2022

Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library.

Memory Corruption

A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.

CVE-2021-42778 5.3 - Medium - April 18, 2022

A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.

Double-free

A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.

CVE-2021-42779 5.3 - Medium - April 18, 2022

A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.

Dangling pointer

A use after return issue was found in Opensc before version 0.22.0 in insert_pin function

CVE-2021-42780 5.3 - Medium - April 18, 2022

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.

Unchecked Return Value

The gemsafe GPK smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init.

CVE-2020-26571 5.5 - Medium - October 06, 2020

The gemsafe GPK smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init.

Memory Corruption

The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.

CVE-2020-26572 5.5 - Medium - October 06, 2020

The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher.

Memory Corruption

The Oberthur smart card software driver in OpenSC before 0.21.0-rc1 has a heap-based buffer overflow in sc_oberthur_read_file.

CVE-2020-26570 5.5 - Medium - October 06, 2020

The Oberthur smart card software driver in OpenSC before 0.21.0-rc1 has a heap-based buffer overflow in sc_oberthur_read_file.

Memory Corruption

OpenSC before 0.20.0 has a double free in coolkey_free_private_data

CVE-2019-20792 6.8 - Medium - April 29, 2020

OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.

Double-free

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3

CVE-2019-19481 4.6 - Medium - December 01, 2019

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-cac1.c mishandles buffer limits for CAC certificates.

Buffer Overflow

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3

CVE-2019-19479 5.5 - Medium - December 01, 2019

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-setcos.c has an incorrect read operation during parsing of a SETCOS file attribute.

Out-of-bounds Read

An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC

CVE-2019-16058 7.5 - High - September 06, 2019

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.

Buffer Overflow

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry in libopensc/asn1.c.

CVE-2019-15946 6.4 - Medium - September 05, 2019

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry in libopensc/asn1.c.

Buffer Overflow

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string in libopensc/asn1.c.

CVE-2019-15945 6.4 - Medium - September 05, 2019

OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string in libopensc/asn1.c.

Buffer Overflow

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call

CVE-2019-6502 7.5 - High - January 22, 2019

sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.

Memory Leak

A double free when handling responses

CVE-2018-16425 6.6 - Medium - September 04, 2018

A double free when handling responses from an HSM Card in sc_pkcs15emu_sc_hsm_init in libopensc/pkcs15-sc-hsm.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Double-free

A buffer overflow when handling string concatenation in util_acl_to_str in tools/util.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

CVE-2018-16418 6.6 - Medium - September 04, 2018

A buffer overflow when handling string concatenation in util_acl_to_str in tools/util.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

Several buffer overflows when handling responses

CVE-2018-16419 6.6 - Medium - September 04, 2018

Several buffer overflows when handling responses from a Cryptoflex card in read_public_key in tools/cryptoflex-tool.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

Several buffer overflows when handling responses

CVE-2018-16420 6.6 - Medium - September 04, 2018

Several buffer overflows when handling responses from an ePass 2003 Card in decrypt_response in libopensc/card-epass2003.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

Several buffer overflows when handling responses

CVE-2018-16421 6.6 - Medium - September 04, 2018

Several buffer overflows when handling responses from a CAC Card in cac_get_serial_nr_from_CUID in libopensc/card-cac.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

A single byte buffer overflow when handling responses

CVE-2018-16422 6.6 - Medium - September 04, 2018

A single byte buffer overflow when handling responses from an esteid Card in sc_pkcs15emu_esteid_init in libopensc/pkcs15-esteid.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

A double free when handling responses

CVE-2018-16423 6.6 - Medium - September 04, 2018

A double free when handling responses from a smartcard in sc_file_set_sec_attr in libopensc/sc.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Double-free

A double free when handling responses in read_file in tools/egk-tool.c (aka the eGK card tool) in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

CVE-2018-16424 6.6 - Medium - September 04, 2018

A double free when handling responses in read_file in tools/egk-tool.c (aka the eGK card tool) in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Double-free

Endless recursion when handling responses

CVE-2018-16426 4.3 - Medium - September 04, 2018

Endless recursion when handling responses from an IAS-ECC card in iasecc_select_file in libopensc/card-iasecc.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to hang or crash the opensc library using programs.

Stack Exhaustion

Various out of bounds reads when handling responses in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to potentially crash the opensc library using programs.

CVE-2018-16427 4.3 - Medium - September 04, 2018

Various out of bounds reads when handling responses in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to potentially crash the opensc library using programs.

Out-of-bounds Read

Several buffer overflows when handling responses

CVE-2018-16393 6.8 - Medium - September 03, 2018

Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in libopensc/pkcs15-gemsafeV1.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

Several buffer overflows when handling responses

CVE-2018-16392 6.8 - Medium - September 03, 2018

Several buffer overflows when handling responses from a TCOS Card in tcos_select_file in libopensc/card-tcos.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

Several buffer overflows when handling responses

CVE-2018-16391 6.8 - Medium - September 03, 2018

Several buffer overflows when handling responses from a Muscle Card in muscle_list_files in libopensc/card-muscle.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Buffer Overflow

Stay on top of Security Vulnerabilities

Want an email whenever new vulnerabilities are published for Openscproject Opensc or by Openscproject? Click the Watch button to subscribe.

subscribe