Where
-Infinity
0

Vendor Risk Score

See how opensc project compares to other vendors in security performance

View Risk Score →
Severity
5.9
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

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.

1 / 3
Source: NVD
First published (updated )
Severity
6.6
AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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.

1 / 3
Source: NVD
First published (updated )
Severity
6.4
Buffer Overflow
AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

Last updated 10 April 2025

1 / 5
Source: Ubuntu
First published (updated )
Severity
3.9
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

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.

1 / 4
Source: NVD
First published (updated )
Severity
3.9
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

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

1 / 4
Source: NVD
First published (updated )
Severity
4.5
AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L

An out-of-bounds read in MyEID driver handling encryption using symmetric keys. An attacker with physical access to the computer running opensc and crafted USB device or smart card that would present the system with specially crafted responses to the APDUs so they are considered a high-complexity and low-severity.

This issue is in the code handling symmetric keys, which are not widely used for example for desktop login so most of the deployments are not affected.

https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651 https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1

1 / 2
Source: Red Hat
First published (updated )
Severity
5.5
Buffer Overflow
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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

First published (updated )
Severity
5.5
Buffer Overflow
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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

First published (updated )
Severity
6.4
Buffer Overflow
AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

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

First published (updated )
Severity
5.5
Buffer Overflow
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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

First published (updated )
Severity
7.5
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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

First published (updated )
Severity
2.9
EPSS
0.04%
Buffer Overflow
AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

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.

1 / 3
Source: NVD
First published (updated )
Severity
4.3
AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

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.

1 / 3
Source: NVD
First published (updated )
Severity
3.9
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

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.

1 / 4
Source: NVD
First published (updated )
Severity
3.9
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

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.

1 / 4
Source: NVD
First published (updated )
Severity
3.9
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

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.

1 / 3
Source: NVD
First published (updated )
Severity
3.4
Use After Free
AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

The Use After Free vulnerability was identified within the AuthentIC driver in OpenSC packages, particularly in the card enrollment process using pkcs15-init when a user or administrator enrolls or modifies cards. An attacker must have physical access to the computer system to take advantage of this flaw. The attack 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 potentially allow for compromising card management operations during enrollment.

Originally reported by OSS-fuzz automated service.

1 / 2
Source: Red Hat
First published (updated )
Severity
5.5
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

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.

First published (updated )
Severity
4.6
AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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

First published (updated )
Severity
6.4
Buffer Overflow
AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

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

First published (updated )
Severity
4.6
Buffer Overflow
AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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.

First published (updated )
Severity
6.6
Buffer Overflow
AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Several buffer overflows when handling responses from an ePass 2003 Card in decryptresponse 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.

1 / 2
Source: MITRE
First published (updated )
Severity
4.3
AV:P/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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.

1 / 2
Source: MITRE
First published (updated )
Severity
6.6
Buffer Overflow
AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Several buffer overflows when handling responses from a Cryptoflex card in readpublickey 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.

1 / 2
Source: MITRE
First published (updated )
Severity
4.3
AV:P/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Endless recursion when handling responses from an IAS-ECC card in iaseccselectfile 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.

1 / 2
Source: MITRE
First published (updated )
Severity
6.6
Double Free
AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

A double free when handling responses from an HSM Card in scpkcs15emuschsminit 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.

First published (updated )
Severity
6.6
Double Free
AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

A double free when handling responses in readfile 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.

First published (updated )
Severity
6.8
Buffer Overflow
AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Several buffer overflows when handling responses from a TCOS Card in tcosselectfile 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.

1 / 2
Source: MITRE
First published (updated )
Severity
6.8
Buffer Overflow
AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafegetcertlen 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.

1 / 2
Source: MITRE
First published (updated )
Severity
6.6
Buffer Overflow
AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

A buffer overflow when handling string concatenation in utilacltostr 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.

1 / 2
Source: MITRE
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203