CVE-2023-2977

opensc: buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package

Published Jun 1, 2023 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The attacker can supply a smart card package with malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for 2 tags, where remaining length is wrongly caculated due to moved starting pointer. This leads to possible heap-based buffer oob read. In cases where ASAN is enabled while compiling this causes a crash. Further info leak or more damage is possible.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3463-1 opensc security update
Debian DLA Debian DLA DLA-4004-1 opensc security update
EUVD EUVD EUVD-2023-34418 A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The attacker can supply a smart card package with malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for 2 tags, where remaining length is wrongly caculated due to moved starting pointer. This leads to possible heap-based buffer oob read. In cases where ASAN is enabled while compiling this causes a crash. Further info leak or more damage is possible.
Ubuntu USN Ubuntu USN USN-7346-1 OpenSC vulnerabilities
Ubuntu USN Ubuntu USN USN-7346-3 OpenSC vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 3, 2025, 9:47 PM
Reserved
May 30, 2023, 12:00 AM
Status
Modified
Published
Jun 1, 2023, 1:15 AM
Modified
Jun 17, 2026, 5:53 AM
Severity
Low
Public date
May 30, 2023, 12:00 AM