Buffer overflow in Opensc

CVE-2026-103531

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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L.

EPSS exploit prediction

EPSS 0.002, 9.2th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • Opensc — versions 0.27.0, 0.27.1

Weakness classification (CWE)

References