opensc — security advisory
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.
- Products
- opensc
- Affected versions
- 0.23.0-0.3
- Fixed versions
- 0.23.0-0.3+deb12u1, 0.23.0-2
- CVEs
- CVE-2023-40661
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 15:57 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2023-40661
opensc
Fixed versions: 0.23.0-0.3+deb12u1
opensc
Fixed versions: 0.23.0-2
opensc
Fixed versions: 0.23.0-2
Complete source record
{
"id": "9718c6fb6056857772b85b35b0fa79f2af2c4b2c5eef513c855e2f18b2d49c5b",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-40661",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2023-40661",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2023-40661",
"products": [
{
"name": {
"value": "opensc",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.23.0-0.3+deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "0.23.0-0.3",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "opensc",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.23.0-2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "opensc",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.23.0-2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2023-40661",
"aliases": [
"DEBIAN-CVE-2023-40661"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:P/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.23.0-0.3+deb12u1"
}
]
}
],
"package": {
"name": "opensc",
"purl": "pkg:deb/debian/opensc?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"0.23.0-0.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40661.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.23.0-2"
}
]
}
],
"package": {
"name": "opensc",
"purl": "pkg:deb/debian/opensc?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40661.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.23.0-2"
}
]
}
],
"package": {
"name": "opensc",
"purl": "pkg:deb/debian/opensc?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-40661.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T18:02:31.844940617Z",
"provider": "osv",
"upstream": [
"CVE-2023-40661"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2023-40661"
]
},
"related_cves": [
{
"value": "CVE-2023-40661",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 456185,
"published_at": "2023-11-06T17:15:11.83+00:00"
}