Skip to main content

OpenSC pkcs11-tool CVE-2026-10275

| EUVDEUVD-2026-33680 LOW
Classic Buffer Overflow (CWE-120)
2026-06-01 VulDB GHSA-c758-vvqj-x96q
1.3
CVSS 4.0 · Vendor: VulDB

Severity by source

Vendor (VulDB) PRIMARY
1.3 LOW
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/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

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
P
Scope
X

Lifecycle Timeline

4
Source Code Evidence Fetched
Jun 01, 2026 - 17:24 vuln.today
Analysis Generated
Jun 01, 2026 - 17:24 vuln.today
Severity Changed
Jun 01, 2026 - 17:22 NVD
MEDIUM LOW
CVSS changed
Jun 01, 2026 - 17:22 NVD
5.0 (MEDIUM) 1.3 (LOW)

DescriptionCVE.org

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.

AnalysisAI

Buffer overflow in OpenSC's pkcs11-tool component (versions up to and including 0.26.1) exposes users of the key generation functionality to memory corruption when processing maliciously oversized PKCS#11 URI object IDs. An unauthenticated remote attacker can trigger the flaw in the test_kpgen_certwrite function, but exploitation requires passive user interaction and high attack complexity, reflected in the extremely low CVSS 4.0 score of 1.3 with impact limited to the vulnerable component only. Publicly available exploit code exists (E:P confirmed in CVSS vector), but no public exploit identified at time of analysis in CISA KEV, and real-world mass exploitation is significantly constrained by the required user participation and attack complexity.

Technical ContextAI

OpenSC is an open-source smart card framework and toolkit. The affected component is pkcs11-tool, a command-line utility for managing PKCS#11 cryptographic tokens. The root cause is a CWE-120 Classic Buffer Overflow: the function test_kpgen_certwrite in src/tools/pkcs11-tool.c copies data from a PKCS#11 URI's object ID field into the fixed-size opt_object_id buffer without first validating that opt_object_id_len does not exceed sizeof(opt_object_id). The PR diff for fix commit 814f745b confirms two missing bounds checks - one in main() during URI parsing and one inside test_kpgen_certwrite() itself - both of which were absent prior to the patch. When an oversized object ID is supplied, adjacent memory is corrupted, potentially affecting program state. The CPE identifier lists vendor as 'n/a' (cpe:2.3:a:n/a:opensc:*:*:*:*:*:*:*:*), which is a non-standard NVD artifact; the authoritative project is the OpenSC open-source project hosted at github.com/OpenSC/OpenSC.

RemediationAI

Apply upstream fix commit 814f745b3b6d100295f65f1935edd33d520d33ab, available at https://github.com/OpenSC/OpenSC/commit/814f745b3b6d100295f65f1935edd33d520d33ab, which adds explicit bounds validation - checking opt_object_id_len against sizeof(opt_object_id) - at two code points in pkcs11-tool.c. The fix is delivered via PR #3684 (https://github.com/OpenSC/OpenSC/pull/3684); a formal tagged release version incorporating this commit (e.g., 0.26.2 or later) has not been independently confirmed from the available data, so users should build from the patched commit or monitor the OpenSC release page for a new version. As a compensating control pending patching, restrict pkcs11-tool key generation operations to internally generated, trusted PKCS#11 URIs and prohibit passing user-supplied or externally sourced URI strings directly to pkcs11-tool - this eliminates the primary attack delivery path without disabling the tool entirely. Given the CVSS 4.0 score of 1.3 and the absence of KEV-confirmed exploitation, immediate emergency patching is not warranted for most environments.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Share

CVE-2026-10275 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy