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

CVE-2026-10275
LOW 2.3

At a glance

Source
NVD
EPSS
EPSS 0.30 % · percentile 22 ()
State
PUBLISHED
Published
Updated
Assigner
VulDB
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-120 — Buffer Copy without Checking Size of Input
  • CWE-119 — Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Scores

VersionScoreVectorScored by
CVSS 4.0LOW 2.3CVSS: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:PVulDB
CVSS 3.1MEDIUM 5.0CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:CVulDB
CVSS 3.0MEDIUM 5.0CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:CVulDB
CVSS 2.0MEDIUM 5.1AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:CVulDB
CVSS 4.0LOW 1.3CVSS: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:XNVD · cna@vuldb.com (Secondary)
CVSS 3.1MEDIUM 5.0CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LNVD · cna@vuldb.com (Secondary)
CVSS 2.0MEDIUM 5.1AV:N/AC:H/Au:N/C:P/I:P/A:PNVD · cna@vuldb.com (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
OpenSCaffected 0.26.0 ; affected 0.26.1

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD