Vulnerability · Published Oct 1, 2026 · Assigned by VulDB
CVE-2026-103531OpenSC card-setcos.c setcos_construct_fci_44 stack-based overflow
Medium 5.5
In plain English
A medium-severity stack buffer overflow in OpenSC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | opensc | no fix listed | DEBIAN-CVE-2026-103531 |
| Debian:13 | opensc | no fix listed | DEBIAN-CVE-2026-103531 |
| Debian:14 | opensc | 0.27.1-3 | DEBIAN-CVE-2026-103531 |
| Ubuntu:26.04:LTS | opensc | no fix listed | UBUNTU-CVE-2026-103531 |
| Ubuntu:26.10 | opensc | no fix listed | UBUNTU-CVE-2026-103531 |
Affected products (as reported)
Weakness: CWE-121, CWE-119 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C
References
- VDB-412343 | OpenSC card-setcos.c setcos_construct_fci_44 stack-based overflow vdb-entry, technical-description
- VDB-412343 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- 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
- https://github.com/OpenSC/OpenSC/pull/3812 issue-tracking, patch
- https://github.com/OpenSC/OpenSC/commit/ad730304052937c32b4eb489a06835ac6123632c patch
- https://github.com/OpenSC/OpenSC/ product