Heap-based buffer overflow in Opencryptoki - #VU167217

 

Heap-based buffer overflow in Opencryptoki - #VU167217

Published: November 18, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to disclose application heap contents, corrupt memory, or crash the application.

The vulnerability exists due to heap buffer overflow and over-read in openCryptoki's CKM_AES_CBC_PAD, CKM_DES3_CBC_PAD, and CKM_DES_CBC_PAD decryption routines when copying plaintext without checking output capacity or padding-removal errors. A remote attacker can supply crafted ciphertext to expose heap contents through returned plaintext when the caller's output buffer exceeds the ciphertext length, or trigger memory corruption when the output buffer is smaller than the plaintext.


Affected software

Opencryptoki

Remediation

Install security update from vendor's website.

Opencryptoki - update to 3.28.0

External References

Related Security Bulletins