Skip to content
Heist/ feed
Back to feed
Medium

opensc — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-10275

A flaw has been found in OpenSC up to 0.26.1. This affects the function test_kpgen_certwrite of the file src/tools/pkcs11-tool.c of the component pkcs11-tool Key Generation Module. This manipulation causes buffer overflow. The attack is possible to be carried out remotely. The complexity of an attack is rather high. It is indicated that the exploitability is difficult. The exploit has been published and may be used. Patch name: 814f745b3b6d100295f65f1935edd33d520d33ab. It is recommended to apply a patch to fix this issue.

Products
opensc
Affected versions
0.15.0-1ubuntu1, 0.15.0-1ubuntu1+esm1, 0.15.0-1ubuntu1+esm2, 0.15.0-1ubuntu1+esm3, 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, 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, 0.21.0-1ubuntu1, 0.22.0-1ubuntu2, 0.22.0-1ubuntu2+esm1, 0.22.0-1ubuntu2.1, 0.22.0-1ubuntu2.1+esm1, 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, 0.25.0~rc1-1ubuntu0.1~esm1, 0.25.0~rc1-1ubuntu0.2, 0.25.0~rc1-1ubuntu0.2+esm1, 0.26.1-1, 0.26.1-2, 0.26.1-3, 0.26.1-3ubuntu1, 0.27.0~rc1-1, 0.27.1-2, 0.27.1-2ubuntu1, 0.27.1-2ubuntu2
Fixed versions
Not specified
CVEs
CVE-2026-10275
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:53 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-10275

core-osv · Original source

Published 1 Jun 2026, 17:16 UTC

A flaw has been found in OpenSC up to 0.26.1. This affects the function test_kpgen_certwrite of the file src/tools/pkcs11-tool.c of the component pkcs11-tool Key Generation Module. This manipulation causes buffer overflow. The attack is possible to be carried out remotely. The complexity of an attack is rather high. It is indicated that the exploitability is difficult. The exploit has been published and may be used. Patch name: 814f745b3b6d100295f65f1935edd33d520d33ab. It is recommended to apply a patch to fix this issue.

osv:UBUNTU-CVE-2026-10275

opensc

Fixed versions: Not specified

opensc

Fixed versions: Not specified

opensc

Fixed versions: Not specified

opensc

Fixed versions: Not specified

opensc

Fixed versions: Not specified

opensc

Fixed versions: Not specified

opensc

Fixed versions: Not specified

opensc

Fixed versions: Not specified

Complete source record
{
  "id": "d4e24a4a49b2ca2113fd6f3b70fc4f5fe47d4b13509e472d325a60babf6ee46e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-10275",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-10275",
    "summary": "A flaw has been found in OpenSC up to 0.26.1. This affects the function test_kpgen_certwrite of the file src/tools/pkcs11-tool.c of the component pkcs11-tool Key Generation Module. This manipulation causes buffer overflow. The attack is possible to be carried out remotely. The complexity of an attack is rather high. It is indicated that the exploitability is difficult. The exploit has been published and may be used. Patch name: 814f745b3b6d100295f65f1935edd33d520d33ab. It is recommended to apply a patch to fix this issue.",
    "evidence": "osv:UBUNTU-CVE-2026-10275",
    "products": [
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.15.0-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.15.0-1ubuntu1+esm1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.15.0-1ubuntu1+esm2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.15.0-1ubuntu1+esm3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.17.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.17.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.17.0-2build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.17.0-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.17.0-3ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.17.0-3ubuntu0.1~esm2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.17.0-3ubuntu0.1~esm3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.19.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.20.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.20.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.20.0-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.20.0-3ubuntu0.1~esm1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.20.0-3ubuntu0.1~esm2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.20.0-3ubuntu0.1~esm3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.20.0-3ubuntu0.1~esm4",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.21.0-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.22.0-1ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.22.0-1ubuntu2+esm1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.22.0-1ubuntu2.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.22.0-1ubuntu2.1+esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.23.0-1ubuntu4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.24.0~rc1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.25.0~rc1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.25.0~rc1-1build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.25.0~rc1-1build2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.25.0~rc1-1ubuntu0.1~esm1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.25.0~rc1-1ubuntu0.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.25.0~rc1-1ubuntu0.2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.25.0~rc1-1ubuntu0.2+esm1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.26.1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.26.1-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.26.1-3",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.27.0~rc1-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "0.27.1-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "0.27.1-2ubuntu1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "0.27.1-2ubuntu2",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opensc",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.26.1-3",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "0.26.1-3ubuntu1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "0.27.0~rc1-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-10275",
      "aliases": [
        "UBUNTU-CVE-2026-10275"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "0.15.0-1ubuntu1",
            "0.15.0-1ubuntu1+esm1",
            "0.15.0-1ubuntu1+esm2",
            "0.15.0-1ubuntu1+esm3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.15.0-1ubuntu1+esm3"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.15.0-1ubuntu1+esm3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.17.0-3ubuntu0.1~esm3"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.17.0-3ubuntu0.1~esm3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.20.0-3ubuntu0.1~esm4"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.20.0-3ubuntu0.1~esm4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.22.0-1ubuntu2.1+esm1"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.22.0-1ubuntu2.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.25.0~rc1-1ubuntu0.2+esm1"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.25.0~rc1-1ubuntu0.2+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.26.1-1",
            "0.26.1-2",
            "0.26.1-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.26.1-3"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.26.1-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.27.0~rc1-1",
            "0.27.1-2",
            "0.27.1-2ubuntu1",
            "0.27.1-2ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.27.1-2ubuntu2"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.27.1-2ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "opensc",
            "purl": "pkg:deb/ubuntu/opensc?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.26.1-3",
            "0.26.1-3ubuntu1",
            "0.27.0~rc1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-10275.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opensc",
                "binary_version": "0.27.0~rc1-1"
              },
              {
                "binary_name": "opensc-pkcs11",
                "binary_version": "0.27.0~rc1-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:46.348526933Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-10275"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-10275",
        "https://www.cve.org/CVERecord?id=CVE-2026-10275",
        "https://github.com/OpenSC/OpenSC/issues/3682",
        "https://github.com/OpenSC/OpenSC/pull/3684",
        "https://github.com/OpenSC/OpenSC/commit/814f745b3b6d100295f65f1935edd33d520d33ab",
        "https://github.com/OpenSC/OpenSC/",
        "https://pan.baidu.com/s/1nrZPKDz2eAcCpsaFiIRlrg",
        "https://vuldb.com/cve/CVE-2026-10275",
        "https://vuldb.com/submit/825403",
        "https://vuldb.com/vuln/367568",
        "https://vuldb.com/vuln/367568/cti"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-10275",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359761,
  "published_at": "2026-06-01T17:16:00+00:00"
}