CVE-2026-22791 json
openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP
published 2026-01-13 9 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-2415
- cvss
- 6.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- opencryptoki Ubuntu 26.04 LTS 3.26.0+dfsg-0ubuntu1.1
ubuntu advisories UBUNTU-CVE-2026-22791
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- openCryptoki SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 3.27.0-160000.1.1
- openCryptoki SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 3.26.0-160000.1.1
- openCryptoki SLE Module for Server Applications 15 SP7 3.26.0-150700.5.9.1
suse advisories SUSE-SU-2026:22293-1SUSE-SU-2026:22365-1SUSE-SU-2026:20434-1SUSE-SU-2026:20345-1SUSE-SU-2026:0291-1
- openCryptoki openSUSE Leap 16.0 3.27.0-160000.1.1
- openCryptoki openSUSE Leap 16.0 3.26.0-160000.1.1
- openCryptoki openSUSE Tumbleweed 3.26.0-3.1
opensuse advisories openSUSE-SU-2026:21059-1openSUSE-SU-2026:20233-1openSUSE-SU-2026:10048-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-22791 updated cvss 6.6
openCryptoki: openCryptoki: Denial of Service and heap corruption via heap buffer overflow
-
Red Hat Enterprise Linux 9 opencryptoki, opencryptoki-libs, opencryptoki-swtok, opencryptoki-ccatok, opencryptoki-icatok, opencryptoki-ep11tok, +1 more Red Hat Enterprise Linux 10 opencryptokiaffected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 opencryptoki, opencryptoki-libs Red Hat Enterprise Linux 7 opencryptoki, opencryptoki-libs, opencryptoki-swtok, opencryptoki-ccatok, opencryptoki-icatok, opencryptoki-tpmtok, +2 more Red Hat Enterprise Linux 8 opencryptoki, opencryptoki-libs, opencryptoki-swtok, opencryptoki-ccatok, opencryptoki-icatok, opencryptoki-tpmtok, +2 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/opencryptoki/opencryptoki/security/advisories/GHSA-26f5-3mwq-4wm7 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H |
Affected products
- opencryptoki opencryptoki
Classification
- Weakness
-
- CWE-131 Incorrect Calculation of Buffer Size
References
Sources
- CVE List CVE-2026-22791
- NVD CVE-2026-22791
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.