Buffer overflow in Opensc
CVE-2026-10275
- CVSS v3
- 5.0 Medium
- Public exploits
- None known
- EPSS
- 0.003 · 22.5th percentile
- Published
- 2026-06-01
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.0 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.003, 22.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Opensc — versions 0.26.0, 0.26.1
Weakness classification (CWE)
References
- VDB-367568 | OpenSC pkcs11-tool Key Generation pkcs11-tool.c test_kpgen_certwrite buffer overflow (technical-description, vdb-entry)
- 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)
- github.com/OpenSC/OpenSC/issues/3682 (issue-tracking)
- github.com/OpenSC/OpenSC/pull/3684 (issue-tracking, patch)
- pan.baidu.com/s/1nrZPKDz2eAcCpsaFiIRlrg (exploit)
- github.com/OpenSC/OpenSC/commit/814f745b3b6d100295f65f1935edd33d520d33ab (patch)
- github.com/OpenSC/OpenSC/ (product)