CVE-2023-40661
JSON

5.4medium

Opensc: multiple memory issues with pkcs15-init (enrollment tool)

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

Description

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.

Affected

Product or packageVersionsReported by
OpenSCbefore 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

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

Classification

What each source says

CVE List

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.

NVD (es)

Se identificaron varias vulnerabilidades de memoria dentro de los paquetes OpenSC, particularmente en el proceso de inscripción de tarjetas usando pkcs15-init cuando un usuario o administrador registra tarjetas. Para aprovechar estas fallas, un atacante debe tener acceso físico al sistema informático y emplear un dispositivo USB o una tarjeta inteligente hechos a medida para manipular las respuestas a las APDU. Esta manipulación puede permitir potencialmente comprometer la generación de claves, la carga de certificados y otras operaciones de administración de tarjetas durante la inscripción.

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-40661third-party-advisory, vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2240913issue-tracking
https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651vdb-entry
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/3
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-40661 changed 2026-11-06CVE Terms of Use
NVDCVE-2023-40661 changed 2026-11-06Public domain