CVE-2026-103531

OpenSC card-setcos.c setcos_construct_fci_44 stack-based overflow

Published Oct 1, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability resides in the setcos_construct_fci_44 function of OpenSC's card-setcos.c module. Manipulating the type_attr argument triggers a stack-based buffer overflow, as noted in the CVE description. This flaw corresponds to the classic stack buffer overflow weaknesses outlined by CWE-119 and CWE-121. No explicit claim of arbitrary code execution is recorded in the description; the impact is the possibility of a stack overflow when the function processes malformed input.

Affected Systems

All installations of OpenSC version 0.27.1 or earlier are affected, as specified by the CNA vendor list and the cpe string. The CVE references the OpenSC library and indicates the vulnerability applies to the card-setcos.c component. No additional sub‑product or platform details are provided.

Risk and Exploitability

The CVSS base score is 5.1, implying moderate severity. The CVE states the attack can be launched remotely, so an attacker from outside the host can exploit the flaw. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog, indicating no known public exploitation. Even though exploitation potential has not been proven, systems exposed to remote smart card interfaces that run this library remain at risk if the patch has not been applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenSC to a version newer than 0.27.1 that contains the ad730304052937c32b4eb489a06835ac6123632c patch.
  • Restart any services that use OpenSC to ensure the updated library is loaded.
  • If an immediate upgrade is not feasible, restrict or block remote access to Smart Card interfaces until the patch is applied.

Generated by OpenCVE AI on October 2, 2026 at 02:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title OpenSC card-setcos.c setcos_construct_fci_44 stack-based overflow
First Time appeared Opensc
Opensc opensc
Weaknesses CWE-119
CWE-121
CPEs cpe:2.3:a:opensc:opensc:*:*:*:*:*:*:*:*
Vendors & Products Opensc
Opensc opensc
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:ND/RL:OF/RC:C'}

cvssV3_0

{'score': 5.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C'}

cvssV3_1

{'score': 5.5, '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'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X'}

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-121

    Stack-based Buffer Overflow

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Oct 5, 2026, 11:57 PM
Reserved
Sep 30, 2026, 7:06 PM
Status
Deferred
Published
Oct 1, 2026, 1:16 AM
Modified
Oct 6, 2026, 1:16 AM
Severity
Moderate
Public date
Oct 1, 2026, 12:45 AM