LiveActive security incident?Get immediate response
CVE Record

CVE-2026-22791: openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP

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.

MediumCVSS 6.6Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2026-22791 affects openCryptoki 3.25.0 and 3.26.0. A local, authenticated user can trigger memory corruption in a key-wrapping operation, potentially crashing the host process and causing limited confidentiality or integrity impact. This is most urgent for systems where untrusted local users or applications can access openCryptoki PKCS#11 functions.

Executive priority

Treat as a targeted, local-risk vulnerability rather than an internet-scale emergency. Prioritize remediation on shared systems, cryptographic service hosts, and environments with untrusted local users or workloads.

Technical view

openCryptoki miscalculates a heap buffer size in C_WrapKey when using CKM_ECDH_AES_KEY_WRAP with a compressed EC public key. The result is out-of-bounds writes in the host process. The CVE maps to CWE-131 and has CVSS 3.1 score 6.6: AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H.

Likely exposure

Exposure is limited to Linux or AIX environments running openCryptoki versions 3.25.0 through 3.26.0, where local users or local applications can invoke PKCS#11 C_WrapKey using the affected mechanism.

Exploitation context

The provided sources describe local exploitation requiring low privileges and no user interaction. The issue can cause heap corruption or denial of service. The source bundle does not indicate known active exploitation, and it is not marked as KEV.

Researcher notes

Evidence supports a heap buffer overflow caused by incorrect buffer sizing in CKM_ECDH_AES_KEY_WRAP handling of compressed EC public keys. Public sources identify affected versions and commits, but the bundle does not name a fixed release version or report exploitation in the wild.

Mitigation direction

  • Inventory systems using openCryptoki on Linux or AIX.
  • Identify openCryptoki versions 3.25.0 and 3.26.0.
  • Review the GitHub advisory and referenced commits for vendor remediation guidance.
  • Update or patch openCryptoki according to vendor guidance when available.
  • Restrict local access to PKCS#11 functions where feasible.

Validation and detection

  • Check installed openCryptoki package versions against 3.25.0 and 3.26.0.
  • Confirm whether applications use CKM_ECDH_AES_KEY_WRAP key wrapping.
  • Verify vendor patches or commit-based fixes are present in deployed builds.
  • Review local user access paths to openCryptoki-enabled services.
  • Monitor affected hosts for crashes in processes using openCryptoki.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-131: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-22791 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.6 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.6CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H1.84.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.6Medium
CVSS 3.1 vector shape for CVE-2026-22791Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
opencryptokiopencryptoki>= 3.25.0, <= 3.26.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-131 · source CWE mapping

Incorrect Calculation of Buffer Size

Incorrect Calculation of Buffer Size represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.