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

Summary

CVECVE-2023-40661
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-11-06 17:15:11 UTC
Updated2026-11-06 21:17:01 UTC
DescriptionSeveral 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.

Risk And Classification

Primary CVSS: v3.1 6.4 MEDIUM from [email protected]

CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

EPSS: 0.013180000 probability, percentile 0.710190000 (date 2026-11-08)

Problem Types: CWE-119 | CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary6.4MEDIUMCVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
3.1[email protected]Secondary5.4MEDIUMCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
3.1CNACVSS5.4MEDIUMCVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H

CVSS v3.1 Breakdown

Attack Vector
Physical
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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/3 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
2240913 – (CVE-2023-40661) CVE-2023-40661 OpenSC: multiple memory issues with pkcs15-init (enrollment tool) af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking
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 VDB Entry
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
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-details af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2023-09-27T00:00:00.000ZReported to Red Hat.
CNA2023-09-25T00:00:00.000ZMade 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)
  • 755078 SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:4065-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)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report