Out-of-bounds write in Opencryptoki - #VU167215
Published: November 18, 2026
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.