VYPR
Unrated severityNVD Advisory· Published Oct 6, 2020· Updated Aug 4, 2024

CVE-2020-26571

CVE-2020-26571

Description

The gemsafe GPK smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A stack-based buffer overflow in OpenSC's gemsafe GPK driver (before 0.21.0-rc1) allows local code execution via crafted smart card responses.

Vulnerability

A stack-based buffer overflow exists in the sc_pkcs15emu_gemsafeGPK_init function of the GemSafe GPK smart card software driver in OpenSC versions prior to 0.21.0-rc1. The vulnerability is triggered during PKCS#15 emulation when processing maliciously crafted smart card responses, potentially allowing an attacker to overwrite stack memory.

Exploitation

An attacker must have local access to a system with a vulnerable OpenSC installation and be able to insert a specially crafted smart card or provide malicious data that the driver will process via sc_pkcs15emu_gemsafeGPK_init. No authentication is needed beyond the ability to present the smart card to the reader; the overflow occurs during initial card response parsing.

Impact

Successful exploitation results in stack-based buffer overflow, which can lead to arbitrary code execution with the privileges of the process using OpenSC (often root or high-integrity user). This can allow an attacker to fully compromise the host system, including reading sensitive data from secure elements or executing arbitrary commands.

Mitigation

The vulnerability is fixed in OpenSC version 0.21.0-rc1 and later, as released on November 24, 2020 [1]. Users are advised to upgrade immediately. No workarounds are available; the fix is included in the 0.21.0 release [1].

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

12

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.