CVE-2023-40660
JSON

6.6medium

Opensc: potential pin bypass when card tracks its own login state

Severity
6.6medium CVSS:3.1 by redhat
Exploit likelihood
1.04% (higher than 64% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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.

Affected

Product or packageVersionsReported by
OpenSCfrom 0.17.0 before 0.24.0
Not affected: from 0:0.20.0-7.el8_9 before *, from 0:0.23.0-3.el9_3 before *
CVE List
opensc_project openscup to 0.23.0NVD
redhat enterprise_linux8.0, 9.0NVD

All scores

redhat6.6medium CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD6.6medium CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-287

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Se encontró una falla en los paquetes OpenSC que permiten una posible omisión del PIN. Cuando un token/tarjeta es autenticado por un proceso, puede realizar operaciones criptográficas en otros procesos cuando se pasa un pin vacío de longitud cero. Este problema plantea un riesgo de seguridad, particularmente para el inicio de sesión/desbloqueo de pantalla del sistema operativo y para tokens pequeños conectados permanentemente a las maquinas. Además, el token puede rastrear internamente el estado de inicio de sesión. Esta falla permite que un atacante obtenga acceso no autorizado, lleve a cabo acciones maliciosas o comprometa el sistema sin que el usuario se de cuenta.

References

https://access.redhat.com/errata/RHSA-2023:7876vendor-advisory
https://access.redhat.com/errata/RHSA-2023:7879vendor-advisory
https://access.redhat.com/security/cve/CVE-2023-40660third-party-advisory, vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2240912issue-tracking
https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651issue-tracking
https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1release-notes
https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisoriesvendor-advisory
http://www.openwall.com/lists/oss-security/2023/12/13/2
https://lists.debian.org/debian-lts-announce/2023/11/msg00024.html
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/
https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html

Sources

SourceRecordLicence
CVE ListCVE-2023-40660 changed 2026-11-06CVE Terms of Use
NVDCVE-2023-40660 changed 2026-11-06Public domain