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

Published Jan 13, 2026
·
Updated

Last updated 1 September 2026

Other sources

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 CKMECDHAESKEYWRAP 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 CWrapKey. This can lead to heap corruption, or denial-of-service.

— MITRE

Affected Software

4 affected componentsFixes available
Opencryptoki opencryptoki>=3.25.0<=3.26.0
Opencryptoki Project Opencryptoki=3.25.0
Opencryptoki Project Opencryptoki=3.26.0
debian/opencryptoki
3.8.1+dfsg-3.23.23.0+dfsg-0.33.27.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/opencryptoki to a version that resolves this vulnerability.

    Fixed in 3.8.1+dfsg-3.2Fixed in 3.23.0+dfsg-0.3Fixed in 3.27.0-1

Event History

Jan 13, 2026
CVE Published
via MITRE·07:06 PM
Data Sourced
via MITRE·07:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 2, 2026
Data Sourced
via Ubuntu·05:49 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·05:50 PM
DescriptionAffected Software
Data Sourced
via Launchpad·05:50 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2026-22791?

CVE-2026-22791 is classified as a critical severity vulnerability due to its potential for local exploitation leading to a heap buffer overflow.

2

How do I fix CVE-2026-22791?

To mitigate CVE-2026-22791, upgrade to openCryptoki version 3.27.0 or later that contains the patches for the vulnerability.

3

Who is affected by CVE-2026-22791?

CVE-2026-22791 affects versions 3.25.0 and 3.26.0 of the openCryptoki library for both Linux and AIX platforms.

4

What is the impact of CVE-2026-22791?

The impact of CVE-2026-22791 could allow an attacker with local access to execute arbitrary code via a crafted request leading to potential data compromise.

5

How can I determine if my system is vulnerable to CVE-2026-22791?

You can determine if your system is vulnerable to CVE-2026-22791 by checking the version of openCryptoki currently installed and ensuring it is not within the affected range.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203