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
- github.com/OpenSC/OpenSC/ (product)
- github.com/OpenSC/OpenSC/commit/ad730304052937c32b4eb489a06835ac6123632c (patch)
- github.com/OpenSC/OpenSC/pull/3812 (issue-tracking, patch)
- CVE-2026-103531 | CVE Analysis and Report (third-party-advisory)
- Submit #956910 | OpenSC >= 0.12.2 up to and including 0.27.1 (latest release, unfixed; fix approved in PR #3812, pending merge) Buffer Overflow (stack, CWE-121) (third-party-advisory)
- VDB-412343 | OpenSC card-setcos.c setcos_construct_fci_44 stack-based overflow (technical-description, vdb-entry)
- VDB-412343 | CTI Indicators (IOB, IOC, IOA) (signature, permissions-required)