Vulnerability · Published Jun 1, 2026 · Assigned by VulDB
CVE-2026-10275OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow
Medium 5.0
In plain English
A medium-severity buffer overflow in OpenSC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | opensc | no fix listed | DEBIAN-CVE-2026-10275 |
| Debian:13 | opensc | no fix listed | DEBIAN-CVE-2026-10275 |
| Debian:14 | opensc | 0.27.1-2 | DEBIAN-CVE-2026-10275 |
| Ubuntu:25.10 | opensc | no fix listed | UBUNTU-CVE-2026-10275 |
| Ubuntu:26.04:LTS | opensc | no fix listed | UBUNTU-CVE-2026-10275 |
| Ubuntu:26.10 | opensc | no fix listed | UBUNTU-CVE-2026-10275 |
Affected products (as reported)
Weakness: CWE-120, CWE-119 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
References
- VDB-367568 | OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow vdb-entry, technical-description
- VDB-367568 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- CVE-2026-10275 | CVE Analysis and Report third-party-advisory
- Submit #825403 | OpenSC OpenSC 0.26.1 and earlier Buffer Overflow third-party-advisory
- https://github.com/OpenSC/OpenSC/issues/3682 issue-tracking
- https://github.com/OpenSC/OpenSC/pull/3684 issue-tracking, patch
- https://pan.baidu.com/s/1nrZPKDz2eAcCpsaFiIRlrg exploit
- https://github.com/OpenSC/OpenSC/commit/814f745b3b6d100295f65f1935edd33d520d33ab patch
- https://github.com/OpenSC/OpenSC/ product