6.4

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

Modified
AliasesUBUNTU-CVE-2023-40661DEBIAN-CVE-2023-40661ALPINE-CVE-2023-40661
Published 06-11-2023Last modified 06-11-2026

Vulnerability summary

CVE-2023-40661 is a medium (CVSS 6.4) vulnerability in opensc_project opensc. EPSS estimates a 1.33% chance of exploitation in the next 30 days, higher than 72% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.4, physical access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
6.4/10
010
Medium · v3.1 (NVD)
EPSS score
1.33%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 10 · Related 6

Timeline

  1. 06-11-2023
    PublishedVulnerability first disclosed.
  2. 06-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

1.33%

Chance of exploitation in the next 30 days

Percentile

72%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 1.32% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: physical access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • opensc< 0.24.0-r0
Debian1 product
  • opensc< 0.23.0-0.3+deb12u1 | < 0.23.0-2
Opensc_project1 product
Redhat1 product
Ubuntu1 product
  • opensc< 0.20.0-3ubuntu0.1~esm4 | < 0.22.0-1ubuntu2+esm1

5 vendors · 5 products

References

20 links
Show all 20 references