---
id: CVE-2026-103531
title: A flaw has been found in OpenSC up to 0.27.1
summary: >-
  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 overflo…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L'
cwe:
  - CWE-119
  - CWE-121
product: OpenSC
affected:
  - OpenSC 0.27.0
  - OpenSC 0.27.1
published: '2026-10-01'
updated: '2026-10-01'
sourceUpdated: '2026-10-01T02:12:10.020'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103531'
references:
  - url: 'https://github.com/OpenSC/OpenSC/'
    label: cna@vuldb.com
  - url: >-
      https://github.com/OpenSC/OpenSC/commit/ad730304052937c32b4eb489a06835ac6123632c
    label: cna@vuldb.com
  - url: 'https://github.com/OpenSC/OpenSC/pull/3812'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-103531'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/956910'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/412343'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/412343/cti'
    label: cna@vuldb.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-01T01:34:15.477Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
