openCryptoki up to 3.26.0 on Linux/AIX asn1.c length out-of-bounds

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.9$0-$5k0.00

Summaryinfo

A vulnerability has been found in openCryptoki up to 3.26.0 on Linux/AIX and classified as problematic. The impacted element is the function ber_decode_INTEGER/ber_decode_SEQUENCE/ber_decode_OCTET_STRING/ber_decode_BIT_STRING/ber_decode_CHOICE of the file asn1.c. Performing a manipulation of the argument length results in out-of-bounds. This vulnerability is cataloged as CVE-2026-40253. The attack must be initiated from a local position. There is no exploit available. It is suggested to install a patch to address this issue.

Detailsinfo

A vulnerability, which was classified as problematic, was found in openCryptoki up to 3.26.0 on Linux/AIX. This affects the function ber_decode_INTEGER/ber_decode_SEQUENCE/ber_decode_OCTET_STRING/ber_decode_BIT_STRING/ber_decode_CHOICE of the file asn1.c. The manipulation of the argument length with an unknown input leads to a out-of-bounds vulnerability. CWE is classifying the issue as CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

The advisory is shared at github.com. This vulnerability is uniquely identified as CVE-2026-40253 since 04/10/2026. The exploitability is told to be easy. An attack has to be approached locally. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 307346 (Linux Distros Unpatched Vulnerability : CVE-2026-40253), which helps to determine the existence of the flaw in a target environment.

Applying the patch ed378f463ef73364c89feb0fc923f4dc867332a3 is able to eliminate this problem. The bugfix is ready for download at github.com.

The vulnerability is also documented in the databases at CNNVD (CNNVD-202604-3433), Tenable (307346) and CERT Bund (WID-SEC-2026-1957). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Affected

  • Red Hat Enterprise Linux
  • SUSE Linux
  • Oracle Linux
  • RESF Rocky Linux

Productinfo

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.0
VulDB Meta Temp Score: 5.9

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA Base Score: 6.8
CNA Vector (GitHub_M): 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Out-of-bounds
CWE: CWE-125 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: Partially
Local: Yes
Remote: No

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 307346
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-40253

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔒

Patch: ed378f463ef73364c89feb0fc923f4dc867332a3

Timelineinfo

04/10/2026 CVE reserved
04/17/2026 +7 days Advisory disclosed
04/17/2026 +0 days VulDB entry created
06/22/2026 +66 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: GHSA-c9cf-6vr4-wfxm
Status: Confirmed

CVE: CVE-2026-40253 (🔒)
GCVE (CVE): GCVE-0-2026-40253
GCVE (VulDB): GCVE-100-357969
CERT Bund: WID-SEC-2026-1957 - Red Hat Enterprise Linux (openCryptoki, hplip, 389-ds-base): Mehrere Schwachstellen
CNNVD: CNNVD-202604-3433 - openCryptoki 安全漏洞

Entryinfo

Created: 04/17/2026 06:19
Updated: 06/22/2026 04:33
Changes: 04/17/2026 06:19 (68), 04/17/2026 23:14 (6), 04/18/2026 05:34 (2), 04/18/2026 16:25 (1), 04/19/2026 22:29 (1), 06/22/2026 04:33 (7)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!