p PatchFirst

CVE-2026-22791

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

CVSS 6.6 · Medium · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="opencryptoki"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • opencryptoki

    Versions
    • >= 3.25.0, <= 3.26.0: Affected

    No fix published

  • opencryptoki Ubuntu 25.10

    Versions
    • 3.24.0+git20250128.0462717+dfsg-0ubuntu1
    • 3.25.0+dfsg-0ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • opencryptoki Ubuntu 26.04 LTS

    Versions
    • 3.25.0+dfsg-0ubuntu1
    • 3.26.0+dfsg-0ubuntu1
    Affected ranges
    • ECOSYSTEM: < 3.26.0+dfsg-0ubuntu1.1

    Update to 3.26.0+dfsg-0ubuntu1.1

Original sources

Check your server →