SB20261118262 - Multiple vulnerabilities in Opencryptoki



SB20261118262 - Multiple vulnerabilities in Opencryptoki

Published: November 18, 2026

Security Bulletin ID SB20261118262
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 5
Exploitation vector Local access
Highest impact Denial of service

Breakdown by Severity

Medium 60% Low 40%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 5 vulnerabilities.


1) Unchecked Return Value (CVE-ID: N/A)

CWE-ID: CWE-252 - Unchecked Return Value

CVSSv4: 2.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to weaken cryptographic protection and disclose residual process memory.

The vulnerability exists due to unchecked return values in Opencryptoki DES/3DES key generation, per-object encryption key generation, and PIN salt initialization when random number generation fails. A remote attacker can exhaust process file descriptors before affected operations to cause leftover heap or stack bytes to become cryptographic keys or salts, potentially exposing stack addresses through salts stored in NVTOK.DAT.


2) Out-of-bounds write (CVE-ID: N/A)

CWE-ID: CWE-787 - Out-of-bounds write

CVSSv4: 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]


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.


3) Heap-based buffer overflow (CVE-ID: N/A)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]


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

The vulnerability exists due to a heap-based buffer overflow in the openCryptoki Soft token when OpenSSL clears an undersized output buffer after a failed KWP integrity check. A remote attacker can supply non-authenticating wrapped data, at least 16 bytes long and a multiple of eight bytes, to C_Decrypt or C_UnwrapKey through CKM_AES_KEY_WRAP_KWP or the RSA-AES and ECDH-AES unwrap mechanisms to overwrite eight bytes beyond the buffer and crash the application.


4) Heap-based buffer overflow (CVE-ID: N/A)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 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]


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.


5) Improper access control (CVE-ID: N/A)

CWE-ID: CWE-284 - Improper Access Control

CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a local user to disclose sensitive cryptographic key material.

The vulnerability exists due to improper access control in openCryptoki's secret_key_unwrap() and priv_key_unwrap() functions when C_UnwrapKey overrides requested CKA_SENSITIVE and CKA_EXTRACTABLE attributes with FALSE and TRUE, respectively. A local user can use a token session to read unwrapped keys through C_GetAttributeValue(CKA_VALUE) on Soft and ICA tokens or export them through C_WrapKey on affected tokens to disclose sensitive key material.


Remediation

Install update from vendor's website.