cve.bz

CVE-2026-22791 opencryptoki project opencryptoki: Incorrect Calculation of Buffer Size

6.1 mediumExploit referenceEPSS 0.3%Fix available

Medium (6.1) in opencryptoki project opencryptoki. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 21st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-01-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-22791 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-22791?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-22791?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-22791 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opencryptoki_project:opencryptoki3.25.0
opencryptoki_project:opencryptoki3.26.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu25.10opencryptokino fix listedUBUNTU-CVE-2026-22791
Ubuntu26.04:LTSopencryptoki3.26.0+dfsg-0ubuntu1.1UBUNTU-CVE-2026-22791 USN-8707-1
SUSELinux Enterprise Module for Server Applications 15 SP7openCryptoki3.26.0-150700.5.9.1SUSE-SU-2026:0291-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0openCryptoki3.26.0-160000.1.1SUSE-SU-2026:20434-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0openCryptoki3.27.0-160000.1.1SUSE-SU-2026:22365-1
SUSELinux Micro 6.2openCryptoki3.26.0-160000.1.1SUSE-SU-2026:20345-1
SUSELinux Micro 6.2openCryptoki3.27.0-160000.1.1SUSE-SU-2026:22293-1
openSUSELeap 16.0openCryptoki3.26.0-160000.1.1openSUSE-SU-2026:20233-1
openSUSELeap 16.0openCryptoki3.27.0-160000.1.1openSUSE-SU-2026:21059-1
openSUSETumbleweedopenCryptoki3.26.0-3.1openSUSE-SU-2026:10048-1

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A local attacker can exploit a heap buffer overflow in openCryptoki's CKM_ECDH_AES_KEY_WRAP implementation, leading to heap corruption and denial of service. This vulnerability has been rated as Moderate by the Red Hat Product security team as, although it may lead to a out-of-bounds write, the impact is limited. When exploiting this vulnerability the attacker has little control over the memory position to be overwritten, additionally the size of the buffer being overwritten is relatively small (around 32 bytes for a P-256 public key for example) making it very difficult to inject any valid payload into memory.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10opencryptokiFix deferred
Red Hat Enterprise Linux 6opencryptokiNot affected
Red Hat Enterprise Linux 7opencryptokiNot affected
Red Hat Enterprise Linux 8opencryptokiNot affected
Red Hat Enterprise Linux 9opencryptokiFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-22791.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON