CVE-2023-2977
- State
- Published
- Severity
- 7.1 High
- Published
- Jun 1, 2023
- Updated
- Nov 3, 2025
- Reserved
- May 30, 2023
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.1 High | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H | CISA-ADP |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
OpenSCn/a |
|
References
- https://access.redhat.com/security/cve/CVE-2023-2977
- https://bugzilla.redhat.com/show_bug.cgi?id=2211088
- https://github.com/OpenSC/OpenSC/issues/2785
- https://github.com/OpenSC/OpenSC/pull/2787
- [debian-lts-announce] 20230621 [SECURITY] [DLA 3463-1] opensc security updatemailing-list
- FEDORA-2023-29530cc60bvendor-advisory
- FEDORA-2023-2afb831742vendor-advisory
- https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.