Vulnerability · Published Jan 13, 2026 · Assigned by GitHub_M
CVE-2026-22791openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP
Medium 6.6
In plain English
A medium-severity security flaw in opencryptoki from opencryptoki. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:25.10 | opencryptoki | no fix listed | UBUNTU-CVE-2026-22791 |
| Ubuntu:26.04:LTS | opencryptoki | 3.26.0+dfsg-0ubuntu1.1 | USN-8707-1 |
| Ubuntu:26.04:LTS | opencryptoki | 3.26.0+dfsg-0ubuntu1.1 | UBUNTU-CVE-2026-22791 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| opencryptoki | opencryptoki | >= 3.25.0, <= 3.26.0 |
Weakness: CWE-131 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
References
- https://github.com/opencryptoki/opencryptoki/security/advisories/GHSA-26f5-3mwq-4wm7 x_refsource_CONFIRM
- https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7 x_refsource_MISC
- https://github.com/opencryptoki/opencryptoki/commit/e37e9127deeeb7bf3c3c4d852c594256c57ec3a8 x_refsource_MISC