Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local process access or token file write access
-
DeliveryCraft malformed BER-encoded cryptographic object with oversized length field
-
ExploitSubmit via C_CreateObject, C_UnwrapKey, or token file load
-
Executionber_decode_* trusts attacker-supplied length without buffer-bound check
-
ImpactOut-of-bounds heap read leaks adjacent memory or crashes PKCS#11 daemon
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires delivering a malformed BER-encoded cryptographic object through one of four specific paths: (1) invoking PKCS#11 API calls C_CreateObject or C_UnwrapKey as a local process with access to the openCryptoki library - the CVSS vector PR:N suggests any local process can call these functions without elevated privileges; (2) writing or replacing a token file on disk in the openCryptoki token storage directory, which is parsed during daemon startup without live attacker PKCS#11 authentication; (3) sending malformed BER data through a remote backend communication channel, applicable when the ICSF backend is configured. Exploitation is not possible on systems where openCryptoki is not installed or where no token backends are active. The non-automatable SSVC finding and AV:L CVSS vector confirm that mass scanning-style exploitation is not viable - an attacker must have local access or file-write capability, or interact with an ICSF-enabled backend. Exploitation via the disk-loading path requires write access to token storage (typically elevated), which limits that vector relative to the API-invocation path. |
| Impact | The CVSS 3.1 score of 6.8 (AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H) reflects a local attack vector with no privilege requirement, high availability impact, and limited confidentiality exposure. The EPSS of 0.01% (2nd percentile) and SSVC Automatable:no together indicate mass automated exploitation is unlikely - the attack requires deliberate crafting of malformed BER structures and delivery through a specific PKCS#11 pathway. However, SSVC confirms POC code exists (Exploitation:poc), which lowers the skill barrier for targeted attacks in environments where openCryptoki is deployed. The token-file-loading path is notable: a malformed file on disk can trigger the OOB read during daemon initialization without live attacker interaction, broadening the attack surface beyond interactive PKCS#11 sessions. The CVSS availability impact of High is the primary urgency driver for environments where cryptographic service continuity is operationally critical (HSM-dependent workloads, key management infrastructure). The confidentiality impact (Low) reflects that OOB reads can leak adjacent heap memory but are not confirmed to enable targeted key material extraction. No CISA KEV listing means active exploitation in the wild is not confirmed; the low EPSS despite POC existence is consistent with SSVC's characterization of partial technical impact and non-automatable exploitation. |
| Exploit ScenarioDerived | A local user process linked against openCryptoki constructs a crafted BER-encoded INTEGER or OCTET_STRING where the BER length field claims a size far exceeding the actual allocation and calls C_CreateObject to submit it; ber_decode_INTEGER or ber_decode_OCTET_STRING reads past the buffer boundary, leaking heap memory adjacent to the decoded object or crashing the PKCS#11 daemon. Alternatively, an attacker with write access to the token storage directory plants a malformed token file; when the openCryptoki daemon initializes and loads the token, the same OOB read fires without any PKCS#11 API interaction. Proof-of-concept code exists per SSVC classification, reducing the technical barrier for either scenario. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Out-of-bounds reads in openCryptoki's BER/DER decoding layer expose Linux and AIX systems to cryptographic service disruption and limited memory disclosure across all token backends. All five primitive decoders in the shared asn1.c library lack buffer-length parameters, accepting attacker-controlled BER length fields without validating them against actual buffer boundaries - a condition reachable via PKCS#11 API operations (C_CreateObject, C_UnwrapKey), token file loading from disk, or remote backend channels (ICSF). Proof-of-concept code exists per SSVC classification, though EPSS sits at 0.01% and no confirmed active exploitation (CISA KEV) has been recorded.
RemediationAI
Apply the upstream fix from commit ed378f463ef73364c89feb0fc923f4dc867332a3 (https://github.com/opencryptoki/opencryptoki/commit/ed378f463ef73364c89feb0fc923f4dc867332a3); no official tagged release incorporating this fix has been independently confirmed at time of analysis, so users should build from the patched commit or await their distribution's packaged update. As compensating controls pending patch availability: restrict access to C_CreateObject and C_UnwrapKey PKCS#11 operations to authenticated, authorized processes using slot-level access controls, limiting the API-invocation attack path (trade-off: may restrict legitimate application access); ensure token files on disk are owned by and writable only by the openCryptoki daemon account, blocking the disk-based malformed-file path (trade-off: no operational impact if administrative controls are already in place); disable or network-isolate the ICSF remote backend if not operationally required, since that path enables network-adjacent attackers to supply malformed BER data (trade-off: loss of ICSF connectivity). The security advisory is at https://github.com/opencryptoki/opencryptoki/security/advisories/GHSA-c9cf-6vr4-wfxm.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
openCryptoki implements the PKCS#11 cryptographic token interface standard for Linux and AIX, providing a shared library layer used by applications to interact with hardware security modules (HSMs) and software tokens. The vulnerable code is in usr/lib/common/asn1.c, which handles BER/DER (Basic Encoding Rules / Distinguished Encoding Rules) parsing for ASN.1-structured cryptographic objects such as keys and certificates. The root cause (CWE-125, Out-of-bounds Read) is that five decoder functions - ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE - accept a raw byte pointer with no corresponding buffer-length argument, so they trust the attacker-supplied BER length octets to determine how many bytes to read. The commit diff confirms the fix pattern: each function signature gained a CK_ULONG buffer-length parameter and now validates that 1 + tag + length + value does not exceed the supplied bound before dereferencing. A secondary variant exists in ber_decode_INTEGER where a zero-length encoding causes an integer underflow. Because asn1.c is the shared common library, all six token backends - Soft, ICA, CCA, TPM, EP11, and ICSF - inherit the flaw.
Know when Opencryptoki gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Any local process can invoke PKCS#11 API without elevated privileges; OOB read yields high availability impact and limited memory disclosure with no integrity consequence.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Opencryptoki
View allopenCryptoki is a PKCS#11 library and tools for Linux and AIX. [CVSS 6.6 MEDIUM]
Privilege escalation in openCryptoki 2.3.2+ allows token-group members to exploit insecure symlink handling in group-wri
openCryptoki 2.4.1 allows local users to create or set world-writable permissions on arbitrary files via a symlink attac
A timing side-channel vulnerability has been discovered in the opencryptoki package while processing RSA PKCS#1 v1.5 pad
openCryptoki before 2.4.1, when using spinlocks, allows local users to create or set world-writable permissions on arbit
Same weakness CWE-125 – Out-of-bounds Read
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Micro 5.4 | Fixed |
| SUSE Linux Enterprise Micro 5.5 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| SUSE Linux Micro 6.0 | Fixed |
| SUSE Linux Micro 6.1 | Fixed |
| SUSE Linux Micro 6.2 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 12 SP5 | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Proxy LTS 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Retail Branch Server LTS 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Manager Server LTS 4.3 | Fixed |
| SUSE CaaS Platform 4.0 | Fixed |
| SUSE Enterprise Storage 6 | Fixed |
| SUSE Enterprise Storage 7 | Fixed |
| SUSE Enterprise Storage 7.1 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP3 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Module for Server Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP2 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP3 | Fixed |
| SUSE Linux Enterprise Real Time 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 12 SP3 | Fixed |
| SUSE Linux Enterprise Server 12 SP3-BCL | Fixed |
| SUSE Linux Enterprise Server 12 SP3-ESPOS | Fixed |
| SUSE Linux Enterprise Server 12 SP3-LTSS | Fixed |
| SUSE Linux Enterprise Server 12 SP4 | Fixed |
| SUSE Linux Enterprise Server 12 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise Server 12 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP1 | Fixed |
| SUSE Linux Enterprise Server 15 SP1-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP2 | Fixed |
| SUSE Linux Enterprise Server 15 SP2-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP3 | Fixed |
| SUSE Linux Enterprise Server 15 SP3-BCL | Fixed |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP3 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | Fixed |
| SUSE Manager Proxy 4.0 | Fixed |
| SUSE Manager Proxy 4.1 | Fixed |
| SUSE Manager Proxy 4.2 | Fixed |
| SUSE Manager Retail Branch Server 4.0 | Fixed |
| SUSE Manager Retail Branch Server 4.1 | Fixed |
| SUSE Manager Retail Branch Server 4.2 | Fixed |
| SUSE Manager Server 4.0 | Fixed |
| SUSE Manager Server 4.1 | Fixed |
| SUSE Manager Server 4.2 | Fixed |
| SUSE OpenStack Cloud 8 | Fixed |
| SUSE OpenStack Cloud 9 | Fixed |
| SUSE OpenStack Cloud Crowbar 8 | Fixed |
| SUSE OpenStack Cloud Crowbar 9 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap Micro 5.4 | Fixed |
| openSUSE Leap Micro 5.5 | Fixed |
EUVD-2026-23318
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB