CVE-2023-2977
published high CVSS 3.1 · 7.1opensc: buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | OpenSCopensc-0.23.0 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2102 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-207 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | opensc | Advisory build | 0.20.0-6.el8 | ALSA-2023:7160 |
| Debian | bullseye | opensc | Advisory build | 0.21.0-1+deb11u1 | DLA-4004-1 |
| Oracle Linux | 8 | openscaarch64 | Advisory build | 0:0.20.0-6.el8 | ELSA-2023-7160 |
| Red Hat Enterprise Linux | RHEL-8 | openscaarch64 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| SUSE / openSUSE | SLE-12-SP5 | openscaarch64 | Advisory build | 0.13.0-3.22.1 | SUSE-SU-2023:2466-1 |
Show 85 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | opensc | Advisory build | 0.17.0-3ubuntu0.1~esm2 | USN-7346-1 |
| Amazon Linux | AL2 | openscaarch64 | Listed in advisory | Not stated | ALAS2-2023-2102 |
| AlmaLinux | 9 | opensc | Advisory build | 0.23.0-2.el9 | ALSA-2023:6587 |
| Debian | buster | opensc | Advisory build | 0.19.0-1+deb10u2 | DLA-3463-1 |
| Oracle Linux | 8 | openscx86_64 | Advisory build | 0:0.20.0-6.el8 | ELSA-2023-7160 |
| Oracle Linux | 9 | openscaarch64 | Advisory build | 0:0.23.0-2.el9 | ELSA-2023-6587 |
| Oracle Linux | 9 | openscx86_64 | Advisory build | 0:0.23.0-2.el9 | ELSA-2023-6587 |
| Red Hat Enterprise Linux | RHEL-8 | opensci686 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | openscppc64le | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | openscs390x | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | openscsrc | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | openscx86_64 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfoaarch64 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfoi686 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfoppc64le | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfos390x | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debuginfox86_64 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourceaarch64 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourcei686 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourceppc64le | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsources390x | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-8 | opensc-debugsourcex86_64 | Advisory build | 0.20.0-6.el8 | RHSA-2023:7160 |
| Red Hat Enterprise Linux | RHEL-9 | openscaarch64 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensci686 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | openscppc64le | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | openscs390x | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | openscsrc | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | openscx86_64 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfoaarch64 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfoi686 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfoppc64le | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfos390x | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debuginfox86_64 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourceaarch64 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourcei686 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourceppc64le | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsources390x | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| Red Hat Enterprise Linux | RHEL-9 | opensc-debugsourcex86_64 | Advisory build | 0.23.0-2.el9 | RHSA-2023:6587 |
| SUSE / openSUSE | SLE-12-SP5 | openscppc64le | Advisory build | 0.13.0-3.22.1 | SUSE-SU-2023:2466-1 |
| SUSE / openSUSE | SLE-12-SP5 | openscs390x | Advisory build | 0.13.0-3.22.1 | SUSE-SU-2023:2466-1 |
| SUSE / openSUSE | SLE-12-SP5 | openscx86_64 | Advisory build | 0.13.0-3.22.1 | SUSE-SU-2023:2466-1 |
| SUSE / openSUSE | SLE-15-SP3 | openscx86_64 | Advisory build | 0.19.0-150100.3.22.1 | SUSE-SU-2023:2508-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscaarch64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscppc64le | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscs390x | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscaarch64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscppc64le | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscs390x | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.19.0-150100.3.22.1 | SUSE-SU-2023:2508-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.19.0-150100.3.22.1 | SUSE-SU-2023:2508-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.19.0-150100.3.22.1 | SUSE-SU-2023:2508-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | openscaarch64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | openscppc64le | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | openscs390x | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | openscx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | opensc-32bitx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | openscaarch64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | openscppc64le | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | openscs390x | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | openscx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | opensc-32bitx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-Micro-5.3 | openscaarch64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Leap-Micro-5.3 | openscx86_64 | Advisory build | 0.22.0-150400.3.3.1 | SUSE-SU-2023:2516-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscaarch64 | Advisory build | 0.23.0-2.1 | OPENSUSE-SU-2024:12968-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscppc64le | Advisory build | 0.23.0-2.1 | OPENSUSE-SU-2024:12968-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscs390x | Advisory build | 0.23.0-2.1 | OPENSUSE-SU-2024:12968-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscx86_64 | Advisory build | 0.23.0-2.1 | OPENSUSE-SU-2024:12968-1 |
| Ubuntu | bionic | opensc-pkcs11 | Advisory build | 0.17.0-3ubuntu0.1~esm2 | USN-7346-1 |
| Ubuntu | focal | opensc | Advisory build | 0.20.0-3ubuntu0.1~esm4 | USN-7346-3 |
| Ubuntu | focal | opensc-pkcs11 | Advisory build | 0.20.0-3ubuntu0.1~esm4 | USN-7346-3 |
| Ubuntu | jammy | opensc | Advisory build | 0.22.0-1ubuntu2+esm1 | USN-7346-1 |
| Ubuntu | jammy | opensc-pkcs11 | Advisory build | 0.22.0-1ubuntu2+esm1 | USN-7346-1 |
| Ubuntu | xenial | opensc | Advisory build | 0.15.0-1ubuntu1+esm2 | USN-7346-1 |
| Ubuntu | xenial | opensc-pkcs11 | Advisory build | 0.15.0-1ubuntu1+esm2 | USN-7346-1 |
| Amazon Linux | AL2 | opensci686 | Listed in advisory | Not stated | ALAS2-2023-2102 |
| Amazon Linux | AL2 | openscsrc | Listed in advisory | Not stated | ALAS2-2023-2102 |
| Amazon Linux | AL2 | openscx86_64 | Listed in advisory | Not stated | ALAS2-2023-2102 |
| Amazon Linux | AL2023 | openscaarch64 | Listed in advisory | Not stated | ALAS2023-2023-207 |
| Amazon Linux | AL2023 | openscsrc | Listed in advisory | Not stated | ALAS2023-2023-207 |
| Amazon Linux | AL2023 | openscx86_64 | Listed in advisory | Not stated | ALAS2023-2023-207 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | OpenSC | opensc-0.23.0 (affected) | redhat · cna |
Weaknesses
1- CWE-119
References
8- 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 update https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html
- https://lists.debian.org/debian-lts-announce/2024/12/msg00026.html
- FEDORA-2023-2afb831742 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/
- FEDORA-2023-29530cc60b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5ab2afe2b0cb4e0ec64fc146085e32ce60a4ea0464bf77b8bd29318286e34965
- Ingested
- 23 Sep 2026, 08:08:27 UTC
- Source record
- Official CVE record