Opensc: potential pin bypass when card tracks its own login state
Summary
| CVE | CVE-2023-40660 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-11-06 17:15:11 UTC |
| Updated | 2026-11-06 21:17:01 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 6.6 MEDIUM from [email protected]
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS: 0.010380000 probability, percentile 0.641830000 (date 2026-11-08)
Problem Types: CWE-287 | CWE-287 Improper Authentication
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 6.6 | MEDIUM | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | [email protected] | Secondary | 6.6 | MEDIUM | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 6.6 | MEDIUM | CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
PhysicalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Opensc Project | Opensc | All | All | All | All |
| Operating System | Redhat | Enterprise Linux | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux | 9.0 | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 0:0.20.0-7.el8_9 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:0.23.0-3.el9_3 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| lists.debian.org/debian-lts-announce/2023/11/msg00024.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| lists.fedoraproject.org/archives/list/[email protected]/messag... | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| www.openwall.com/lists/oss-security/2023/12/13/2 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| access.redhat.com/errata/RHSA-2023:7876 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| New release 0.24.0 · Issue #2792 · OpenSC/OpenSC · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Issue Tracking |
| lists.fedoraproject.org/archives/list/[email protected]/messag... | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| access.redhat.com/errata/RHSA-2023:7879 | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| cve-details | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| 2240912 – (CVE-2023-40660) CVE-2023-40660 OpenSC: Potential PIN bypass when card tracks its own login state | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking |
| OpenSC security advisories · OpenSC/OpenSC Wiki · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Vendor Advisory |
| Release 0.24.0-rc1 · OpenSC/OpenSC · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Release Notes |
| lists.debian.org/debian-lts-announce/2024/12/msg00026.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Upstream acknowledges Deepanjan Pal (Oracle Corporation) as the original reporter. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2023-09-27T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2023-09-25T00:00:00.000Z | Made public. |
Legacy QID Mappings
- 161246 Oracle Enterprise Linux Security Update for opensc (ELSA-2023-7879)
- 161249 Oracle Enterprise Linux Security Update for opensc (ELSA-2023-7876)
- 242627 Red Hat Update for opensc (RHSA-2023:7879)
- 242631 Red Hat Update for opensc (RHSA-2023:7876)
- 284825 Fedora Security Update for opensc (FEDORA-2023-c7e4c9af51)
- 285094 Fedora Security Update for opensc (FEDORA-2023-a854153d7a)
- 356583 Amazon Linux Security Advisory for opensc : ALAS2-2023-2323
- 356637 Amazon Linux Security Advisory for opensc : ALAS2023-2023-417
- 379617 Alibaba Cloud Linux Security Update for opensc (ALINUX3-SA-2024:0026)
- 506145 Alpine Linux Security Update for opensc
- 6000352 Debian Security Update for opensc (DLA 3668-1)
- 755092 SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:4089-1)
- 755099 SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:4104-1)
- 941506 AlmaLinux Security Update for opensc (ALSA-2023:7876)
- 941511 AlmaLinux Security Update for opensc (ALSA-2023:7879)