Heap-based buffer overflow in Opencryptoki - #VU167217
Published: November 18, 2026
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.