Every CVE Search/ Get API key

CVE-2026-10275

OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow

2.3 LowFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
Passive

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
Low

Exploit likelihood

0.30%Up 0.2 points since Jun 2, 2026
90%50%10%1%

What each source reports

CVE List Score used 2.3

OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow

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.

Record
CVE-2026-10275
CVSS 4.0
2.3 LowCVSS: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
CVSS 3.1
5.0 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
CVSS 3.0
5.0 MediumCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
CVSS 2.0
5.1 AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C
Weakness
CWE-120, CWE-119
Updated
2026-11-02
EUVDEUVD-2026-33680 2.3

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.

Record
EUVD-2026-33680
CVSS 4.0
2.3 LowCVSS: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
Updated
2026-11-02
GitHub AdvisoriesGHSA-c758-vvqj-x96q 1.3

A flaw has been found in OpenSC up to 0.26.1. This affects the function test_kpgen_certwrite of...

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.

Record
GHSA-c758-vvqj-x96q
CVSS 4.0
1.3 LowCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
5.0 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Weakness
CWE-119
Updated
2026-11-02
NVD 1.3

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.

Record
CVE-2026-10275
CVSS 4.0
1.3 LowCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
5.0 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
CVSS 2.0
5.1 MediumAV:N/AC:H/Au:N/C:P/I:P/A:P
Weakness
CWE-119, CWE-120
Updated
2026-11-02
OSVBELL-CVE-2026-10275 5.0
Record
BELL-CVE-2026-10275
CVSS 3.1
5.0 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSV 1.3

OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow

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.

Record
CVE-2026-10275
CVSS 4.0
1.3 LowCVSS: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
Weakness
CWE-119, CWE-120
Updated
2026-11-02
Show 13 moreShow less
OSVDEBIAN-CVE-2026-10275 1.3

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.

Record
DEBIAN-CVE-2026-10275
CVSS 4.0
1.3 LowCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVUBUNTU-CVE-2026-10275 1.3

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.

Record
UBUNTU-CVE-2026-10275
CVSS 4.0
1.3 LowCVSS: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
CVSS 3.1
5.0 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVAZL-89376 No score

CVE-2026-10275 affecting package opensc for versions less than 0.27.1-2

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.

Record
AZL-89376
Updated
2026-11-05
OSVCLSA-2026-1787393949 No score

opensc: Fix of 2 CVEs

  • CVE-2024-8443: fix heap buffer overflow in the OpenPGP driver when writing the key fingerprint, reject key responses not matching the requested algorithm and set the EC point length from the received response
  • CVE-2026-10275: fix buffer overflow in pkcs11-tool when copying a token supplied CKA_ID into the object id buffer
Record
CLSA-2026-1787393949
Updated
2026-11-02
OSVCLSA-2026-1788866231 No score

opensc: Fix of CVE-2026-10275

  • fix CVE-2026-10275 buffer overflows in pkcs11-tool RSA and ECC key-generation tests
Record
CLSA-2026-1788866231
Updated
2026-11-02
OSVMGASA-2026-0231 No score

Updated opensc packages fix security vulnerabilities

These packages fix security vulnerabilities: 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. CVE-2026-40528, OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the do_key_value() function in src/pkcs15init/profile.c that allows attackers to corrupt memory by supplying a crafted profile configuration file. During pkcs15-init invocation, a key value entry beginning with '=' followed by more than sizeof(keybuf) characters is copied into keybuf via memcpy without a length check, causing both stack and heap buffer overruns.

Record
MGASA-2026-0231
Updated
2026-11-02
OSVopenSUSE-SU-2026:11022-1 No score

opensc-0.27.1-2.1 on GA media

These are all security issues fixed in the opensc-0.27.1-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11022-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:21873-1 No score

Security update for opensc

This update for opensc fixes the following issues:

  • CVE-2026-10275: global buffer overflow during key pair generation tests due to missing input validation (bsc#1267246).
  • CVE-2026-40528: stack and heap buffer overrun in the do_key_value() function due to missing length check allows for memory corruption via a crafted profile configuration file (bsc#1266963).
Record
openSUSE-SU-2026:21873-1
Updated
2026-11-02
OSVSUSE-SU-2026:22103-1 No score

Security update for opensc

This update for opensc fixes the following issues

  • CVE-2026-10275: global buffer overflow during key pair generation tests due to missing input validation (bsc#1267246).
  • CVE-2026-40528: stack and heap buffer overrun in the do_key_value() function due to missing length check allows for memory corruption via a crafted profile configuration file (bsc#1266963).
Record
SUSE-SU-2026:22103-1
Updated
2026-11-02
OSVSUSE-SU-2026:22139-1 No score

Security update for opensc

This update for opensc fixes the following issues

  • CVE-2026-10275: global buffer overflow during key pair generation tests due to missing input validation (bsc#1267246).
  • CVE-2026-40528: stack and heap buffer overrun in the do_key_value() function due to missing length check allows for memory corruption via a crafted profile configuration file (bsc#1266963).
Record
SUSE-SU-2026:22139-1
Updated
2026-11-02
OSVSUSE-SU-2026:2657-1 No score

Security update for opensc

This update for opensc fixes the following issues

  • CVE-2025-49010: stack-buffer-overflow via crafted smart card or USB device responses (bsc#1261214).
  • CVE-2025-66037: crafted input can cause an out-of-bounds read (bsc#1261218).
  • CVE-2025-66038: improper compact-TLV length validation can lead to crash or unexpected behavior (bsc#1261219).
  • CVE-2025-66215: crafted smart card or USB device can cause a stack-buffer-overflow write (bsc#1261220).
  • CVE-2026-10275: global buffer overflow during key pair generation tests due to missing input validation (bsc#1267246).
  • CVE-2026-40528: stack and heap buffer overrun in the do_key_value() function due to missing length check allows for memory corruption via a crafted profile configuration file (bsc#1266963).
Record
SUSE-SU-2026:2657-1
Updated
2026-11-02
OSVSUSE-SU-2026:2678-1 No score

Security update for opensc

This update for opensc fixes the following issues

  • CVE-2025-49010: stack-buffer-overflow via crafted smart card or USB device responses (bsc#1261214).
  • CVE-2025-66215: crafted smart card or USB device can cause a stack-buffer-overflow write (bsc#1261220).
  • CVE-2026-10275: global buffer overflow during key pair generation tests due to missing input validation (bsc#1267246).
Record
SUSE-SU-2026:2678-1
Updated
2026-11-02
OSVSUSE-SU-2026:2697-1 No score

Security update for opensc

This update for opensc fixes the following issues

  • CVE-2025-49010: stack-buffer-overflow via crafted smart card or USB device responses (bsc#1261214).
  • CVE-2025-66037: crafted input can cause an out-of-bounds read (bsc#1261218).
  • CVE-2025-66038: improper compact-TLV length validation can lead to crash or unexpected behavior (bsc#1261219).
  • CVE-2025-66215: crafted smart card or USB device can cause a stack-buffer-overflow write (bsc#1261220).
  • CVE-2026-10275: global buffer overflow during key pair generation tests due to missing input validation (bsc#1267246).
  • CVE-2026-40528: stack and heap buffer overrun in the do_key_value() function due to missing length check allows for memory corruption via a crafted profile configuration file (bsc#1266963).
Record
SUSE-SU-2026:2697-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
opensc
Azure Linux:3
before 0.27.1-2
0.27.1-2
opensc
Alpaquita:23
0.22.0-r4 up to 0.27.1-r1
0.27.1-r1
opensc
Alpaquita:25
0.26.0-r0 up to 0.27.1-r1
0.27.1-r1
opensc
Alpaquita:stream
0.22.0-r3 up to 0.27.1-r1
0.27.1-r1
opensc
TuxCare:AlmaLinux:9.6
From an advisory covering 2 CVEs
before 0.23.0-5.el9.tuxcare.els6
0.23.0-5.el9.tuxcare.els6
opensc
TuxCare:AlmaLinux:9.2
before 0.22.0-2.el9_2.tuxcare.els9
0.22.0-2.el9_2.tuxcare.els9
opensc
Debian:12
All versions, plus listed versions
0.23.0-0.30.23.0-0.3+deb12u10.23.0-0.3+deb12u20.23.0-10.23.0-2
Show 13 moreShow less
0.24.0~rc1-10.25.0~rc1-10.25.1-10.25.1-20.25.1-2.10.26.0-10.26.1-10.26.1-20.26.1-30.27.0~rc1-10.27.0~rc2-10.27.1-10.27.1-2
None known
opensc
Debian:13
All versions, plus listed versions
0.26.1-20.26.1-30.27.0~rc1-10.27.0~rc2-10.27.1-10.27.1-2
None known
opensc
Debian:14
before 0.27.1-2, plus listed versions
0.26.1-20.26.1-30.27.0~rc1-10.27.0~rc2-10.27.1-1
0.27.1-2
opensc
Mageia:9
From an advisory covering 2 CVEs
before 0.25.0-1.3.mga9
0.25.0-1.3.mga9
Show 28 moreShow less
Affected packages
PackageAffectedFixed
opensc
SUSE:Linux Micro 6.0
From an advisory covering 2 CVEs
before 0.24.0-6.1
0.24.0-6.1
opensc
SUSE:Linux Micro 6.1
From an advisory covering 2 CVEs
before 0.24.0-slfo.1.1_4.1
0.24.0-slfo.1.1_4.1
opensc
SUSE:Linux Enterprise Micro 5.3
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise Micro 5.4
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise Micro 5.5
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise Server 15 SP4-LTSS
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise Server 15 SP5-LTSS
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise Server for SAP Applications 15 SP4
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise Server for SAP Applications 15 SP5
From an advisory covering 6 CVEs
before 0.22.0-150400.3.17.1
0.22.0-150400.3.17.1
opensc
SUSE:Linux Enterprise Server 12 SP5-LTSS
From an advisory covering 3 CVEs
before 0.13.0-3.36.1
0.13.0-3.36.1
opensc
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5
From an advisory covering 3 CVEs
before 0.13.0-3.36.1
0.13.0-3.36.1
opensc
SUSE:Linux Enterprise Module for Basesystem 15 SP7
From an advisory covering 6 CVEs
before 0.22.0-150600.11.11.1
0.22.0-150600.11.11.1
opensc
SUSE:Linux Enterprise Server 15 SP6-LTSS
From an advisory covering 6 CVEs
before 0.22.0-150600.11.11.1
0.22.0-150600.11.11.1
opensc
SUSE:Linux Enterprise Server for SAP Applications 15 SP6
From an advisory covering 6 CVEs
before 0.22.0-150600.11.11.1
0.22.0-150600.11.11.1
opensc
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
0.15.0-1ubuntu10.15.0-1ubuntu1+esm10.15.0-1ubuntu1+esm20.15.0-1ubuntu1+esm3
None known
opensc
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
0.17.0-10.17.0-20.17.0-2build10.17.0-30.17.0-3ubuntu0.1~esm10.17.0-3ubuntu0.1~esm20.17.0-3ubuntu0.1~esm3
None known
opensc
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
0.19.0-20.20.0-10.20.0-20.20.0-30.20.0-3ubuntu0.1~esm10.20.0-3ubuntu0.1~esm20.20.0-3ubuntu0.1~esm30.20.0-3ubuntu0.1~esm4
None known
opensc
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
0.21.0-1ubuntu10.22.0-1ubuntu20.22.0-1ubuntu2+esm10.22.0-1ubuntu2.10.22.0-1ubuntu2.1+esm1
None known
opensc
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
0.23.0-1ubuntu40.24.0~rc1-10.25.0~rc1-10.25.0~rc1-1build10.25.0~rc1-1build2
Show 4 moreShow less
0.25.0~rc1-1ubuntu0.1~esm10.25.0~rc1-1ubuntu0.10.25.0~rc1-1ubuntu0.20.25.0~rc1-1ubuntu0.2+esm1
None known
opensc
Ubuntu:25.10
All versions, plus listed versions
0.26.1-10.26.1-20.26.1-3
None known
opensc
Ubuntu:26.10
All versions, plus listed versions
0.27.0~rc1-10.27.1-20.27.1-2ubuntu10.27.1-2ubuntu2
None known
opensc
Ubuntu:26.04:LTS
All versions, plus listed versions
0.26.1-30.26.1-3ubuntu10.27.0~rc1-1
None known
opensc
openSUSE:Tumbleweed
From an advisory covering 2 CVEs
before 0.27.1-2.1
0.27.1-2.1
opensc
openSUSE:Leap 16.0
From an advisory covering 2 CVEs
before 0.26.1-160000.5.1
0.26.1-160000.5.1

History

History
RecordedChangedSources
affected
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-10275 is a low vulnerability (CVSS 2.3) in Opensc, published June 1, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.30%, the 22nd percentile. Fixed in opensc 0.27.1-2.

References

Show 33 moreShow less
MoveEnter Open