Out-of-bounds write in Opencryptoki - #VU167215

 

Out-of-bounds write in Opencryptoki - #VU167215

Published: November 18, 2026


Vulnerability identifier: #VU167215
CSH Severity: Medium
CVSS v4: 5.9 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service and corrupt memory in the calling application.

The vulnerability exists due to an out-of-bounds write in openCryptoki's Soft token and common-code fallback HMAC signing paths when processing undersized output buffers without checking their capacity against the MAC length. A remote attacker can trigger C_Sign or C_SignFinal with an undersized non-NULL output buffer to overwrite adjacent heap or stack memory with MAC bytes while the operation incorrectly returns CKR_OK.


Affected software

Opencryptoki

Remediation

Install security update from vendor's website.

Opencryptoki - update to 3.28.0

External References

Related Security Bulletins