{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0.27.0"
              },
              {
                "last_affected": "0.27.0"
              },
              {
                "introduced": "0.27.1"
              },
              {
                "last_affected": "0.27.1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "aca07679a6dd281ee6411f5e7de2ed0ee796bee8"
            },
            {
              "fixed": "ad730304052937c32b4eb489a06835ac6123632c"
            }
          ],
          "repo": "https://github.com/opensc/opensc",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.27.0",
        "0.27.1"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-119",
      "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103531.json"
  },
  "details": "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.",
  "id": "CVE-2026-103531",
  "modified": "2026-10-02T03:30:29.730551536Z",
  "published": "2026-10-01T00:45:15.812Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/OpenSC/OpenSC/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103531.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-103531"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/cve/CVE-2026-103531"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/956910"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/412343"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/412343/cti"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/OpenSC/commit/ad730304052937c32b4eb489a06835ac6123632c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/OpenSC/pull/3812"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OpenSC card-setcos.c setcos_construct_fci_44 stack-based overflow"
}