CVE-2023-40661

Source
https://cve.org/CVERecord?id=CVE-2023-40661
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40661.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-40661
Downstream
AZL (2)
CLSA (1)
DEBIAN (1)
openSUSE (1)
RHSA (2)
SUSE (3)
UBUNTU (1)
Related
Published
2023-11-06T16:58:43Z
Modified
2026-10-21T02:49:59Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H CVSS Calculator
Summary
Opensc: multiple memory issues with pkcs15-init (enrollment tool)
Details

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.

Database specific
{
    "cna_assigner":  "redhat",
    "cwe_ids":  [
        "CWE-119"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40661.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "fixed":  "0:0.20.0-7.el8_9"
                        },
                        {
                            "fixed":  "0:0.23.0-3.el9_3"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "InverseAffectedRanges"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/opensc/opensc

Affected ranges

Type
GIT
Repo
https://github.com/opensc/opensc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "0.23.0"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "original_tag":  "0.24.0-rc1",
            "range":  [
                {
                    "fixed":  "97121587579e703fe653160f3a2936661d1db2ad"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

0.*
0.12.2
0.12.2-rc1
0.13.0
0.13.0pre1
0.13.0rc1
0.14.0
0.14.0rc2
0.14.0rtm
0.15.0
0.16.0
0.17.0
0.17.0-rc1
0.17.0-rc2
0.18.0
0.18.0-rc1
0.18.0-rc2
0.19.0
0.19.0-rc1
0.20.0
0.20.0-rc1
0.20.0-rc2
0.20.0-rc3
0.20.0-rc4
0.21.0
0.21.0-rc1
0.21.0-rc2
0.22.0
0.22.0-rc1
0.22.0-rc2
0.23.0
0.23.0-rc1
0.23.0-rc2
v0.*
v0.12.2
v0.16.0-pre1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40661.json"