{"api_version":"1","generated_at":"2026-04-23T04:33:44+00:00","cve":"CVE-2023-2977","urls":{"html":"https://cve.report/CVE-2023-2977","api":"https://cve.report/api/cve/CVE-2023-2977.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-2977","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-2977"},"summary":{"title":"CVE-2023-2977","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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2023-06-01 01:15:00","updated_at":"2023-11-07 04:13:00"},"problem_types":["CWE-125"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/","name":"FEDORA-2023-29530cc60b","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 38 Update: opensc-0.23.0-5.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/","name":"FEDORA-2023-2afb831742","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: opensc-0.23.0-5.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/security/cve/CVE-2023-2977","name":"https://access.redhat.com/security/cve/CVE-2023-2977","refsource":"MISC","tags":[],"title":"cve-details","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/OpenSC/OpenSC/issues/2785","name":"https://github.com/OpenSC/OpenSC/issues/2785","refsource":"MISC","tags":[],"title":"Possible buffer overrun vulnerability in pkcs15 `cardos_have_verifyrc_package` · Issue #2785 · OpenSC/OpenSC · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html","name":"[debian-lts-announce] 20230621 [SECURITY] [DLA 3463-1] opensc security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3463-1] opensc security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/","name":"FEDORA-2023-2afb831742","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: opensc-0.23.0-5.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2211088","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2211088","refsource":"MISC","tags":[],"title":"2211088 – (CVE-2023-2977) CVE-2023-2977 opensc: buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/","name":"FEDORA-2023-29530cc60b","refsource":"","tags":[],"title":"[SECURITY] Fedora 38 Update: opensc-0.23.0-5.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/OpenSC/OpenSC/pull/2787","name":"https://github.com/OpenSC/OpenSC/pull/2787","refsource":"MISC","tags":[],"title":"pkcs15init: correct left length calculation to fix buffer overrun bug. by fullwaywang · Pull Request #2787 · OpenSC/OpenSC · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-2977","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2977","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"2977","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"opensc_project","cpe5":"opensc","cpe6":"0.23.0","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"2977","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"2977","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"redhat","cpe5":"enterprise_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-2977","qid":"161112","title":"Oracle Enterprise Linux Security Update for opensc (ELSA-2023-6587)"},{"cve":"CVE-2023-2977","qid":"161180","title":"Oracle Enterprise Linux Security Update for opensc (ELSA-2023-7160)"},{"cve":"CVE-2023-2977","qid":"182714","title":"Debian Security Update for opensc (CVE-2023-2977)"},{"cve":"CVE-2023-2977","qid":"242326","title":"Red Hat Update for opensc (RHSA-2023:6587)"},{"cve":"CVE-2023-2977","qid":"242446","title":"Red Hat Update for opensc (RHSA-2023:7160)"},{"cve":"CVE-2023-2977","qid":"284411","title":"Fedora Security Update for opensc (FEDORA-2023-2afb831742)"},{"cve":"CVE-2023-2977","qid":"284415","title":"Fedora Security Update for opensc (FEDORA-2023-29530cc60b)"},{"cve":"CVE-2023-2977","qid":"355439","title":"Amazon Linux Security Advisory for opensc : ALAS2023-2023-207"},{"cve":"CVE-2023-2977","qid":"355552","title":"Amazon Linux Security Advisory for opensc : ALAS2-2023-2102"},{"cve":"CVE-2023-2977","qid":"379248","title":"Alibaba Cloud Linux Security Update for opensc (ALINUX3-SA-2024:0001)"},{"cve":"CVE-2023-2977","qid":"6000071","title":"Debian Security Update for opensc (DLA 3463-1)"},{"cve":"CVE-2023-2977","qid":"754076","title":"SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:2466-1)"},{"cve":"CVE-2023-2977","qid":"754098","title":"SUSE Enterprise Linux Security Update for opensc (SUSE-SU-2023:2508-1)"},{"cve":"CVE-2023-2977","qid":"907005","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opensc (27002-1)"},{"cve":"CVE-2023-2977","qid":"907034","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opensc (27012-1)"},{"cve":"CVE-2023-2977","qid":"941408","title":"AlmaLinux Security Update for opensc (ALSA-2023:6587)"},{"cve":"CVE-2023-2977","qid":"941459","title":"AlmaLinux Security Update for opensc (ALSA-2023:7160)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2023-2977","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"OpenSC","version":{"version_data":[{"version_value":"opensc-0.23.0"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-119"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://access.redhat.com/security/cve/CVE-2023-2977","url":"https://access.redhat.com/security/cve/CVE-2023-2977"},{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=2211088","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2211088"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/issues/2785","url":"https://github.com/OpenSC/OpenSC/issues/2785"},{"refsource":"MISC","name":"https://github.com/OpenSC/OpenSC/pull/2787","url":"https://github.com/OpenSC/OpenSC/pull/2787"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230621 [SECURITY] [DLA 3463-1] opensc security update","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00025.html"},{"refsource":"FEDORA","name":"FEDORA-2023-29530cc60b","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LAR54OV6EHA56B4XJF6RNPQ4HJ2ITU66/"},{"refsource":"FEDORA","name":"FEDORA-2023-2afb831742","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJD4Q4AJSGE5UIJI7OUYZY4HGGCVYQNI/"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2023-06-01 01:15:00","lastModifiedDate":"2023-11-07 04:13:00","problem_types":["CWE-125"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.1,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:opensc_project:opensc:0.23.0:-:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}