MidnightBSD

Advisories for opensc_project

CVE-2013-1866 MEDIUM

OpenSC OpenSC.tokend has an Arbitrary File Creation/Overwrite Vulnerability

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 6.1 MEDIUM CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H 0.9 5.2

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-59,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16391 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16392 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16393 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16418 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16419 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16420 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16421 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16422 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16423 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-415,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16424 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-415,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16425 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-415,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16426 LOW

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.

CVSS 2.0

Severity: LOW

Problem Type: CWE-674,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2018-16427 LOW

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.

CVSS 2.0

Severity: LOW

Problem Type: CWE-125,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2019-15945 MEDIUM

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 6.4 MEDIUM CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H 0.5 5.9

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
debian debian_linux 9.0
opensc_project opensc *
debian debian_linux 8.0
fedoraproject fedora 31
CVE-2019-15946 MEDIUM

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 6.4 MEDIUM CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H 0.5 5.9

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
debian debian_linux 9.0
opensc_project opensc *
debian debian_linux 8.0
fedoraproject fedora 31
CVE-2019-16058 MEDIUM

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.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc 0.2.0
opensc_project opensc 0.3.0
CVE-2019-19479 LOW

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.5 MEDIUM CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 1.8 3.6

CVSS 2.0

Severity: LOW

Problem Type: CWE-125,

Products Affected

Vendor Product Version
debian debian_linux 9.0
opensc_project opensc *
debian debian_linux 8.0
opensc_project opensc 0.20.0
fedoraproject fedora 31
CVE-2019-19480 LOW

An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/pkcs15-prkey.c has an incorrect free operation in sc_pkcs15_decode_prkdf_entry.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 4.6 MEDIUM CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 0.9 3.6

CVSS 2.0

Severity: LOW

Problem Type: CWE-672,

Products Affected

Vendor Product Version
opensc_project opensc *
opensc_project opensc 0.20.0
CVE-2019-19481 LOW

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 4.6 MEDIUM CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 0.9 3.6

CVSS 2.0

Severity: LOW

Problem Type: CWE-119,

Products Affected

Vendor Product Version
opensc_project opensc 0.19.0
opensc_project opensc 0.20.0
CVE-2019-20792 MEDIUM

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 6.8 MEDIUM CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 0.9 5.9

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-415,

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2019-6502 MEDIUM

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

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-401,

Products Affected

Vendor Product Version
opensc_project opensc 0.19.0
CVE-2020-26570 LOW

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.5 MEDIUM CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 1.8 3.6

CVSS 2.0

Severity: LOW

Problem Type: CWE-787,

Products Affected

Vendor Product Version
debian debian_linux 9.0
opensc_project opensc *
fedoraproject fedora 33
CVE-2020-26571 LOW

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.5 MEDIUM CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 1.8 3.6

CVSS 2.0

Severity: LOW

Problem Type: CWE-787,

Products Affected

Vendor Product Version
debian debian_linux 9.0
opensc_project opensc *
fedoraproject fedora 33
CVE-2020-26572 LOW

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.5 MEDIUM CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 1.8 3.6

CVSS 2.0

Severity: LOW

Problem Type: CWE-787,

Products Affected

Vendor Product Version
debian debian_linux 9.0
opensc_project opensc *
fedoraproject fedora 33
CVE-2021-34193

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2021-42778 MEDIUM

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.3 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 3.9 1.4

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-672,CWE-415,

Products Affected

Vendor Product Version
opensc_project opensc *
fedoraproject fedora 33
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2021-42779 MEDIUM

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.3 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 3.9 1.4

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-416,CWE-416,

Products Affected

Vendor Product Version
opensc_project opensc *
fedoraproject fedora 33
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2021-42780 MEDIUM

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.3 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 3.9 1.4

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-252,CWE-252,

Products Affected

Vendor Product Version
opensc_project opensc *
fedoraproject fedora 33
redhat enterprise_linux 7.0
CVE-2021-42781 MEDIUM

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.3 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 3.9 1.4

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,CWE-787,

Products Affected

Vendor Product Version
opensc_project opensc *
fedoraproject fedora 33
redhat enterprise_linux 7.0
CVE-2021-42782 MEDIUM

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

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.3 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 3.9 1.4

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-119,CWE-787,

Products Affected

Vendor Product Version
opensc_project opensc *
fedoraproject fedora 33
CVE-2023-2977

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.

Products Affected

Vendor Product Version
redhat enterprise_linux 9.0
opensc_project opensc 0.23.0
redhat enterprise_linux 8.0
CVE-2023-40660

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 6.6 MEDIUM CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 0.7 5.9
nvd@nist.gov 6.6 MEDIUM CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 0.7 5.9

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 8.0
CVE-2023-40661

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 5.4 MEDIUM CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H 0.7 4.7
nvd@nist.gov 6.4 MEDIUM CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H 0.5 5.9

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 8.0
CVE-2023-4535

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 4.5 MEDIUM CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L 0.4 3.7
nvd@nist.gov 3.8 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L 0.4 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
fedoraproject fedora 38
opensc_project opensc 0.23.0
fedoraproject fedora 39
CVE-2023-5992

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.9 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N 2.2 3.6
secalert@redhat.com 5.6 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 2.2 3.4

Products Affected

Vendor Product Version
redhat enterprise_linux_for_ibm_z_systems_eus 9.4_s390x
opensc_project opensc *
redhat enterprise_linux_for_arm_64 9.0_aarch64
redhat enterprise_linux_eus 9.4
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
redhat enterprise_linux_for_arm_64 8.0_aarch64
redhat enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions 9.4_ppc64le
redhat enterprise_linux_for_ibm_z_systems 9.0_s390x
redhat enterprise_linux 9.0
redhat enterprise_linux_for_arm_64_eus 9.4_aarch64
redhat enterprise_linux_server_aus 9.4
redhat enterprise_linux_for_power_little_endian_eus 9.4_ppc64le
redhat enterprise_linux_for_ibm_z_systems 8.0_s390x
redhat enterprise_linux_for_power_little_endian 9.0_ppc64le
redhat enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions 9.2
CVE-2024-1454

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.4 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N 0.4 2.7

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
fedoraproject fedora 38
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
fedoraproject fedora 40
fedoraproject fedora 39
CVE-2024-45615

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.).

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2024-45616

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2024-45617

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2024-45618

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2024-45619

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2024-45620

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
redhat enterprise_linux 9.0
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2024-8443

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
secalert@redhat.com 3.4 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N 0.4 2.7

Products Affected

Vendor Product Version
redhat enterprise_linux 9.0
opensc_project opensc -
redhat enterprise_linux 7.0
redhat enterprise_linux 8.0
CVE-2025-49010

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 to the APDUs. This issue has been patched in version 0.27.0.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 3.8 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L 0.4 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2025-66037

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 allocation. This issue has been patched in version 0.27.0.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2025-66038

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. Calling sc_compacttlv_find_tag with search tag 0x00 returns a pointer equal to buf+1 and outlen=10 without verifying that the claimed value length fits within the remaining buffer. In cases where the sc_compacttlv_find_tag is provided untrusted data (such as being read from cards/files), attackers may be able to influence it to return out-of-bounds pointers leading to downstream memory corruption when subsequent code tries to dereference the pointer. This issue has been patched in version 0.27.0.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 3.9 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 0.5 3.4

Products Affected

Vendor Product Version
opensc_project opensc *
CVE-2025-66215

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 to the APDUs. This issue has been patched in version 0.27.0.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 3.8 LOW CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L 0.4 3.4

Products Affected

Vendor Product Version
opensc_project opensc *