CVE-2023-2977

Source
https://cve.org/CVERecord?id=CVE-2023-2977
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-2977.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-2977
Downstream
Related
Published
2023-06-01T00:00:00Z
Modified
2026-07-08T02:01:26.942402040Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardoshaveverifyrcpackage. The attacker can supply a smart card package with malformed ASN1 context. The cardoshaveverifyrcpackage 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.

Database specific
{
    "cwe_ids": [
        "CWE-119"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2977.json",
    "cna_assigner": "redhat"
}
References

Affected packages

Git / github.com/opensc/opensc

Affected ranges

Type
GIT
Repo
https://github.com/opensc/opensc
Events
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "CPE_STRING"
    ],
    "extracted_events": [
        {
            "introduced": "opensc-0.23.0"
        },
        {
            "last_affected": "opensc-0.23.0"
        },
        {
            "introduced": "0.23.0-NA"
        },
        {
            "last_affected": "0.23.0-NA"
        }
    ],
    "cpe": "cpe:2.3:a:opensc_project:opensc:0.23.0:-:*:*:*:*:*:*"
}

Affected versions

0.*
0.23.0
0.23.0-NA
opensc-0.*
opensc-0.23.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-2977.json"