All reports
Medium

opensc: opensc: Arbitrary code execution via stack-based buffer overflow in card-setcos

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-103531

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-20

Description

A flaw has been found in OpenSC up to 0.27.1. The impacted element is the function setcos_construct_fci_44 of the file src/libopensc/card-setcos.c. Executing a manipulation of the argument type_attr can lead to stack-based buffer overflow. The attack can be launched remotely. This patch is called ad730304052937c32b4eb489a06835ac6123632c. It is best practice to apply a patch to resolve this issue.

A flaw was found in OpenSC. A stack-based buffer overflow vulnerability exists in the SetCOS smart card driver during the handling of file control information in the setcos_construct_fci_44 function. By supplying manipulated card attributes, an attacker could trigger memory corruption, potentially leading to arbitrary code execution or an application crash resulting in a Denial of Service (DoS).