A flaw has been found in OpenSC up to 0.27.1. (CVE-2026-103531)
Description
A stack-based buffer overflow vulnerability exists in OpenSC up to version 0.27.1 in the function setcos_construct_fci_44. This flaw can be triggered by manipulating the argument type_attr and may be exploited remotely. The vulnerability has a medium severity with a CVSS score of 5.5. A patch identified by commit ad730304052937c32b4eb489a06835ac6123632c is available to fix this issue. It is recommended to apply the patch to affected versions to mitigate the risk.
CVSS v3.1
Score 5.5medium
Affected software
pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/xenialpkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/opensc?arch=source&distro=stonkingpkg:deb/ubuntu/opensc?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenSC versions up to 0.27.1 contain a stack-based buffer overflow vulnerability in the function setcos_construct_fci_44 located in src/libopensc/card-setcos.c. The vulnerability arises from improper handling of the argument type_attr, which can be manipulated to cause a buffer overflow. This flaw can be exploited remotely. A patch has been released (commit ad730304052937c32b4eb489a06835ac6123632c) to address this issue.
Potential Impact
Successful exploitation of this vulnerability could lead to a stack-based buffer overflow, potentially allowing an attacker to execute arbitrary code or cause a denial of service. The CVSS score of 5.5 indicates a medium level of severity with impacts on confidentiality, integrity, and availability.
Mitigation Recommendations
A patch is available for this vulnerability as identified by commit ad730304052937c32b4eb489a06835ac6123632c. It is recommended to apply this official fix to all affected versions of OpenSC to resolve the issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-103531
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad3f4f62cdf04f6566575fd
Added to database: 10/17/2026, 22:21:42 UTC
Last enriched: 10/17/2026, 22:42:53 UTC
Last updated: 10/17/2026, 22:42:53 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.