CVE-2019-16058
CVE-2019-16058 is a high-severity vulnerability in Opensc Project Opensc with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-119.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.0
- EPSS exploit prediction: 2% (72nd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Opensc Project Opensc
- Published:
- Last modified:
Description
An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.
Frequently asked questions
- What is CVE-2019-16058?
- An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.
- How severe is CVE-2019-16058?
- CVE-2019-16058 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2019-16058 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (72nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2019-16058?
- CVE-2019-16058 primarily affects Opensc Project Opensc. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2019-16058?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2019-16058 published?
- CVE-2019-16058 was published on 2019-09-06 and last updated on 2026-06-17.
References
- http://www.openwall.com/lists/oss-security/2019/09/12/1
- https://github.com/OpenSC/pam_p11/commit/d150b60e1e14c261b113f55681419ad1dfa8a76c
Affected products (2)
- cpe:2.3:a:opensc_project:opensc:0.2.0:*:*:*:*:*:*:*
- cpe:2.3:a:opensc_project:opensc:0.3.0:*:*:*:*:*:*:*
More vulnerabilities in Opensc Project Opensc
- CVE-2021-34193 — High (CVSS 7.5): Stack overflow vulnerability in OpenSC smart card middleware before 0.23 via crafted responses to APDUs.
- CVE-2019-6502 — High (CVSS 7.5): sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv.
- CVE-2023-2977 — High (CVSS 7.1): A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15…
- CVE-2019-20792 — Medium (CVSS 6.8): OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in…
- CVE-2018-16393 — Medium (CVSS 6.8): Several buffer overflows when handling responses from a Gemsafe V1 Smartcard in gemsafe_get_cert_len in…
- CVE-2018-16392 — Medium (CVSS 6.8): Several buffer overflows when handling responses from a TCOS Card in tcos_select_file in libopensc/card-tcos.c in…
All CVEs affecting Opensc Project Opensc →
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.