---
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
  - CWE-787
vendor: Red Hat
product: OpenSC
affected:
  - OpenSC 0.27.0
  - OpenSC 0.27.1
published: '2026-10-01'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T01:16:33.190'
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
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103531.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-103531'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2544409'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-103531'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103531'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-05T23:57:41.325085Z'
epss: 0.00194
epssPercentile: 0.09054
scores:
  nvd: 5.5
  vendor: 6.8
  cna: 5.5
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.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · updated 2026-10-01 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103531.json)
