CVE-2026-22791CWE-131

openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP

Medium · published January 13, 2026

CVSS v3.1
6.6
EPSS
0%
Percentile
19.9
In the wild
Unconfirmed
What it is

openCryptoki is a PKCS#11 library and tools for Linux and AIX. In 3.25.0 and 3.26.0, there is a heap buffer overflow vulnerability in the CKM_ECDH_AES_KEY_WRAP implementation allows an attacker with local access to cause out-of-bounds writes in the host process by supplying a compressed EC public key and invoking C_WrapKey. This can lead to heap corruption, or denial-of-service.

The record
Technical detail
CVSS v3.1
6.6 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
CVSS v4.0
Not supplied
EPSS
0.00284 · 19.9th percentile
Weakness
CWE-131 · Incorrect Calculation of Buffer Size
Published
2026-01-13T19:06Z
EPSS history
Timeline
  • 13 JAN 19:06Z
    openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP
    cvelistv5