Read the docs
TI-2026-29047 Aliases CVE-2026-40253

openCryptoki: Memory safety vulnerabilities in BER/DER decoders in asn1.c

Priority MEDIUM 63CWE-125Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · None · High
Fix status
Partial Red Hat: 11 fixed, 2 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.

Summary

openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0016 5th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial Red Hat: 6 advisoriesRed Hat: 11 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
opencryptokiopencryptokiup to 3.26.0—No fix listedCNA
  • opencryptoki Vendoropencryptoki Affected up to 3.26.0 Fixed in — No fix listed CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:opencryptoki_project:opencryptoki:*:*:*:*:*:*:*:*up to 3.26.0Vulnerableopencryptoki
  • cpe:2.3:a:opencryptoki_project:opencryptoki:*:*:*:*:*:*:*:* Versions up to 3.26.0 Vulnerable ·opencryptoki

Remediation

Red Hat 6 advisories

  • RHSA-2026:36717 Released 2026-07-08 · Red Hat rating Moderate
    opencryptoki security update
    • Red Hat CodeReady Linux Builder EUS (v.9.6) opencryptoki-devel-3.24.0-5.el9_6.2
    • Red Hat Enterprise Linux BaseOS EUS (v.9.6) opencryptoki-3.24.0-5.el9_6.2, opencryptoki-ccatok-3.24.0-5.el9_6.2, opencryptoki-ep11tok-3.24.0-5.el9_6.2 +4
  • RHSA-2026:36697 Released 2026-07-08 · Red Hat rating Moderate
    opencryptoki security update
    • Red Hat Enterprise Linux BaseOS EUS (v. 10.0) opencryptoki-3.24.0-6.el10_0.2, opencryptoki-ccatok-3.24.0-6.el10_0.2, opencryptoki-ep11tok-3.24.0-6.el10_0.2 +4
    • Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) opencryptoki-devel-3.24.0-6.el10_0.2
  • RHSA-2026:33519 Released 2026-06-30 · Red Hat rating Moderate
    opencryptoki security update
    • Red Hat Enterprise Linux BaseOS E4S (v.9.4) opencryptoki-3.22.0-3.el9_4.3, opencryptoki-ccatok-3.22.0-3.el9_4.3, opencryptoki-ep11tok-3.22.0-3.el9_4.3 +4
Show 3 more Red Hat advisories
  • RHSA-2026:28256 Released 2026-06-23 · Red Hat rating Moderate
    opencryptoki security update
    • Red Hat Enterprise Linux BaseOS (v. 9) opencryptoki-3.26.0-2.el9_8.2, opencryptoki-ccatok-3.26.0-2.el9_8.2, opencryptoki-ep11tok-3.26.0-2.el9_8.2 +4
    • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) opencryptoki-devel-3.26.0-2.el9_8.2
  • RHSA-2026:28231 Released 2026-06-23 · Red Hat rating Moderate
    opencryptoki security update
    • Red Hat Enterprise Linux BaseOS (v. 10) opencryptoki-3.26.0-3.el10_2.1, opencryptoki-ccatok-3.26.0-3.el10_2.1, opencryptoki-ep11tok-3.26.0-3.el10_2.1 +4
    • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) opencryptoki-devel-3.26.0-3.el10_2.1
  • RHSA-2026:26352 Released 2026-06-16 · Red Hat rating Moderate
    opencryptoki security update
    • Red Hat Enterprise Linux BaseOS (v. 8) opencryptoki-3.22.0-3.el8_10.3, opencryptoki-ccatok-3.22.0-3.el8_10.3, opencryptoki-ep11tok-3.22.0-3.el8_10.3 +5
    • Red Hat Enterprise Linux CRB (v. 8) opencryptoki-devel-3.22.0-3.el8_10.3

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix yet: Fix deferred
Red Hat CodeReady Linux Builder EUS (v.9.6)Fixed RHSA-2026:36717
Red Hat Enterprise Linux BaseOS (v. 10)Fixed RHSA-2026:28231
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2026:26352
Red Hat Enterprise Linux BaseOS (v. 9)Fixed RHSA-2026:28256
Red Hat Enterprise Linux BaseOS E4S (v.9.4)Fixed RHSA-2026:33519
Red Hat Enterprise Linux BaseOS EUS (v. 10.0)Fixed RHSA-2026:36697
Red Hat Enterprise Linux BaseOS EUS (v.9.6)Fixed RHSA-2026:36717
Red Hat Enterprise Linux CRB (v. 8)Fixed RHSA-2026:26352
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)Fixed RHSA-2026:28231
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)Fixed RHSA-2026:28256
Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)Fixed RHSA-2026:36697
Not affected: 5 products
  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-40253

References

  • TI-2026-19251 openCryptoki has improper link resolution before file access (link following) CVSS 3.1MEDIUM 6.8
  • TI-2026-18309 openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP CVSS 3.1MEDIUM 6.6
  • TI-2024-00843 Opencryptoki: timing side-channel in handling of rsa pkcs#1 v1.5 padded ciphertexts (marvin) CVSS 3.1MEDIUM 5.9
  • TI-2012-03797 openCryptoki 2.4.1 allows local users to create or set world-writable permissions on… CVSS 2.0MEDIUM 6.2
  • TI-2021-02729 Information disclosure in opencryptoki CVSS 3.1MEDIUM 5.5
  • TI-2012-03796 openCryptoki before 2.4.1, when using spinlocks, allows local users to create or set… CVSS 2.0LOW 2.9

Sources