CVE-2026-10275 Details
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.
A buffer overflow vulnerability has been identified in OpenSC versions through 0.26.1. This issue resides in the pkcs11-tool component, specifically within the test_kpgen_certwrite function of the pkcs11-tool.c file. The vulnerability allows for a global buffer overflow during key pair generation tests by improperly validating the length of the CKA_ID attribute returned from PKCS#11 tokens or smart cards. This flaw can be exploited remotely, although the attack's complexity is considered high.
Users are advised to update to the latest version of OpenSC, as the vulnerability has been fixed in version 0.27.1. Instructions for downloading the latest release are available on the OpenSC GitHub page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 1, 2026CISA-ADP
Assessed Jun 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/OpenSC/OpenSC/ | [email protected] | Vendor |
| https://github.com/OpenSC/OpenSC/commit/814f745b3b6d100295f65f1935edd33d520d33ab | [email protected] | Source CodeVendor |
| https://github.com/OpenSC/OpenSC/issues/3682 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/OpenSC/OpenSC/pull/3684 | [email protected] | Issue TrackingVendor |
| https://pan.baidu.com/s/1nrZPKDz2eAcCpsaFiIRlrg | [email protected] | Content Wall |
| https://vuldb.com/cve/CVE-2026-10275 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/825403 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/367568 | [email protected] | Technical DescriptionPermission Required |
| https://vuldb.com/vuln/367568/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| OpenSC | <= 0.26.1 (semver) |
CPE
Remediation
| |
| OpenSC pkcs11-tool | <= 0.26.1 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | New CVE Received | [email protected] |
Volerion