Skip to main content

A flaw has been found in OpenSC up to 0.27.1. (CVE-2026-103531)

0
Medium
Published: 10/01/2026 (10/01/2026, 01:16:00 UTC)
Source: GCVE Database
Product: opensc

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Affected software

Ubuntu:Pro:16.04:LTSmore threats →ghsa
opensc
pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/xenial
Affected versions
=0.15.0-1ubuntu1=0.15.0-1ubuntu1+esm1=0.15.0-1ubuntu1+esm2=0.15.0-1ubuntu1+esm3
Ubuntu:Pro:18.04:LTSmore threats →ghsa
opensc
pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/bionic
Affected versions
=0.17.0-1=0.17.0-2=0.17.0-2build1=0.17.0-3=0.17.0-3ubuntu0.1~esm1=0.17.0-3ubuntu0.1~esm2=0.17.0-3ubuntu0.1~esm3
Ubuntu:Pro:20.04:LTSmore threats →ghsa
opensc
pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/focal
Affected versions
=0.19.0-2=0.20.0-1=0.20.0-2=0.20.0-3=0.20.0-3ubuntu0.1~esm1=0.20.0-3ubuntu0.1~esm2=0.20.0-3ubuntu0.1~esm3=0.20.0-3ubuntu0.1~esm4
Ubuntu:Pro:22.04:LTSmore threats →ghsa
opensc
pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/jammy
Affected versions
=0.21.0-1ubuntu1=0.22.0-1ubuntu2=0.22.0-1ubuntu2+esm1=0.22.0-1ubuntu2.1=0.22.0-1ubuntu2.1+esm1
Ubuntu:Pro:24.04:LTSmore threats →ghsa
opensc
pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps/noble
Affected versions
=0.23.0-1ubuntu4=0.24.0~rc1-1=0.25.0~rc1-1=0.25.0~rc1-1build1=0.25.0~rc1-1build2=0.25.0~rc1-1ubuntu0.1~esm1=0.25.0~rc1-1ubuntu0.1=0.25.0~rc1-1ubuntu0.2=0.25.0~rc1-1ubuntu0.2+esm1
Ubuntu:26.10more threats →ghsa
opensc
pkg:deb/ubuntu/opensc?arch=source&distro=stonking
Affected versions
=0.27.0~rc1-1=0.27.1-2=0.27.1-2ubuntu1=0.27.1-2ubuntu2
Ubuntu:26.04:LTSmore threats →ghsa
opensc
pkg:deb/ubuntu/opensc?arch=source&distro=resolute
Affected versions
=0.26.1-3=0.26.1-3ubuntu1=0.27.0~rc1-1

Run 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

AILast updated: 10/17/2026, 22:42:53 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses