
CVE catalog
CVE-2023-2977
OpenSC vulnerabilities
- Severity
- Medium · CVSS 6.3
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.29% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | opensc | sid | 0.27.1-3 | fixed |
| Debian | opensc | forky | 0.27.1-3 | fixed |
| Debian | opensc | trixie | 0.26.1-2 | fixed |
| Debian | opensc | bookworm | 0.23.0-0.3+deb12u2 | fixed |
| Ubuntu | opensc | noble | 0.23.0-0.3 | fixed |
| Ubuntu | opensc | noble | 0.25.0~rc1-1ubuntu0.1~esm1 | fixed |
| Ubuntu | opensc-pkcs11 | noble | 0.25.0~rc1-1ubuntu0.1~esm1 | fixed |
| Ubuntu | opensc | pro | 0.21.0-1ubuntu1 | vulnerable |
| Ubuntu | opensc | pro | 0.22.0-1ubuntu2 | vulnerable |
| Ubuntu | opensc | pro | 0.22.0-1ubuntu2+esm1 | fixed |
| Suse | opensc | linux enterprise real time 15 sp3 | 0.19.0-150100.3.22.1 | fixed |
| Suse | opensc | linux enterprise micro 5.1 | 0.19.0-150100.3.22.1 | fixed |
| Suse | opensc | linux enterprise micro 5.2 | 0.19.0-150100.3.22.1 | fixed |
| Opensuse | opensc | tumbleweed | 0.23.0-2.1 | fixed |
| Suse | opensc | linux enterprise micro 5.3 | 0.22.0-150400.3.3.1 | fixed |
| Suse | opensc | linux enterprise micro 5.4 | 0.22.0-150400.3.3.1 | fixed |
| Suse | opensc | linux enterprise module for basesystem 15 sp4 | 0.22.0-150400.3.3.1 | fixed |
| Suse | opensc | linux enterprise module for basesystem 15 sp5 | 0.22.0-150400.3.3.1 | fixed |
| Opensuse | opensc | leap micro 5.3 | 0.22.0-150400.3.3.1 | fixed |
| Opensuse | opensc | leap 15.4 | 0.22.0-150400.3.3.1 | fixed |
| Opensuse | opensc | leap 15.5 | 0.22.0-150400.3.3.1 | fixed |
| Suse | opensc | linux enterprise server 12 sp5 | 0.13.0-3.22.1 | fixed |
| Suse | opensc | linux enterprise server for sap applications 12 sp5 | 0.13.0-3.22.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | opensc | source | sid | 0.23.0-0.3 | not yet assigned | Not reported | [1037021] |
| Debian | opensc | source | forky | 0.23.0-0.3 | not yet assigned | Not reported | [1037021] |
| Debian | opensc | source | trixie | 0.23.0-0.3 | not yet assigned | Not reported | [1037021] |
| Debian | opensc | source | bookworm | 0.23.0-0.3 | not yet assigned | Not reported | [1037021] |
| Ubuntu | opensc | deb | noble | 0.23.0-0.3 | Not reported | Not reported | Not reported |
| Ubuntu | opensc | deb | noble | 0.25.0~rc1-1ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | opensc-pkcs11 | deb | noble | 0.25.0~rc1-1ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | opensc | deb | pro | 0.22.0-1ubuntu2+esm1 | Not reported | UBUNTU-CVE-2023-2977 | Not reported |
| Suse | opensc | rpm | linux enterprise real time 15 sp3 | 0.19.0-150100.3.22.1 | Not reported | SUSE-SU-2023:2508-1 | Not reported |
| Suse | opensc | rpm | linux enterprise micro 5.1 | 0.19.0-150100.3.22.1 | Not reported | SUSE-SU-2023:2508-1 | Not reported |
| Suse | opensc | rpm | linux enterprise micro 5.2 | 0.19.0-150100.3.22.1 | Not reported | SUSE-SU-2023:2508-1 | Not reported |
| Opensuse | opensc | rpm | tumbleweed | 0.23.0-2.1 | Not reported | OPENSUSE-SU-2024:12968-1 | Not reported |
| Suse | opensc | rpm | linux enterprise micro 5.3 | 0.22.0-150400.3.3.1 | Not reported | SUSE-SU-2023:2516-1 | Not reported |
| Suse | opensc | rpm | linux enterprise micro 5.4 | 0.22.0-150400.3.3.1 | Not reported | SUSE-SU-2023:2516-1 | Not reported |
| Suse | opensc | rpm | linux enterprise module for basesystem 15 sp4 | 0.22.0-150400.3.3.1 | Not reported | SUSE-SU-2023:2516-1 | Not reported |
| Suse | opensc | rpm | linux enterprise module for basesystem 15 sp5 | 0.22.0-150400.3.3.1 | Not reported | SUSE-SU-2023:2516-1 | Not reported |
| Opensuse | opensc | rpm | leap micro 5.3 | 0.22.0-150400.3.3.1 | Not reported | SUSE-SU-2023:2516-1 | Not reported |
| Opensuse | opensc | rpm | leap 15.4 | 0.22.0-150400.3.3.1 | Not reported | SUSE-SU-2023:2516-1 | Not reported |
| Opensuse | opensc | rpm | leap 15.5 | 0.22.0-150400.3.3.1 | Not reported | SUSE-SU-2023:2516-1 | Not reported |
| Suse | opensc | rpm | linux enterprise server 12 sp5 | 0.13.0-3.22.1 | Not reported | SUSE-SU-2023:2466-1 | Not reported |
| Suse | opensc | rpm | linux enterprise server for sap applications 12 sp5 | 0.13.0-3.22.1 | Not reported | SUSE-SU-2023:2466-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://access.redhat.com/errata/RHSA-2023:6587]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2023_7160.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-2977]
- [https://osv.dev/vulnerability/SUSE-SU-2023:2466-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:2508-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:2516-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-2977]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12968-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-2977]
- [https://ubuntu.com/security/notices/USN-7346-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1324.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]