Appsecure logo

CVE-2026-22791: Medium Vulnerability in openCryptoki

CVE-2026-22791 is a medium-severity heap buffer overflow vulnerability in openCryptoki, impacting versions 3.25.0 and 3.26.0. Organizations should prioritize patching to mitigate risks associated with potential denial-of-service attacks.

MEDIUMCVSS 6.6 · Published January 13, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2026-22791 represents a medium-severity vulnerability found in openCryptoki, which is a PKCS#11 library and tools for Linux and AIX. This vulnerability allows attackers with local access to exploit a heap buffer overflow in the CKM_ECDH_AES_KEY_WRAP implementation. By supplying a compressed EC public key and invoking C_WrapKey, an attacker can cause out-of-bounds writes in the host process. The consequences of this vulnerability include heap corruption or denial-of-service, making it a significant concern for affected systems.

The vulnerability was discovered in versions 3.25.0 and 3.26.0 of openCryptoki, with a CVSS score of 6.6 indicating a medium severity level. The attack vector is categorized as local, and the required privileges are low, which raises the risk of exploitation in environments where users have access. Organizations utilizing these versions need to be aware of the potential impacts and prioritize remediation efforts.

Given the nature of the vulnerability, organizations should take immediate action to mitigate risks associated with this flaw. The urgency for patching is heightened by the fact that the vulnerability could lead to denial-of-service scenarios if exploited. Therefore, organizations are advised to ensure they are running the latest patched versions of openCryptoki.

It's also essential to monitor for any related advisories or updates from the vendor. In this case, the vendor has released patches addressing this vulnerability, and organizations should implement these updates as part of their security practices.

Vulnerability Details

The vulnerability is classified under CWE-131 (Improper Handling of Exceptional Conditions), which highlights the issues arising from inadequate management of error conditions and resource limits. The CVSS vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H, reflecting the various impacts of this vulnerability, including low confidentiality and integrity impacts, but high availability impact.

openCryptoki is affected in its 3.25.0 and 3.26.0 versions. Organizations should take note of these versions and any others that may be vulnerable if they have not been updated since the release.

Technical Analysis

The root cause of this vulnerability lies in the CKM_ECDH_AES_KEY_WRAP implementation within openCryptoki. The flaw allows for a heap buffer overflow, which can lead to memory corruption when an attacker supplies a compressed EC public key. The attack vector is local, meaning that an attacker needs access to the same system where the vulnerable library is running.

Given the low attack complexity, an unprivileged user with access to the system can potentially exploit this vulnerability without needing any user interaction. The impacts of this vulnerability include low confidentiality and integrity impacts, but it poses a high risk to availability, as it could lead to system crashes and denial-of-service conditions.

Risk & Impact Analysis

Risk to organizations includes the potential for unauthorized access to sensitive processes and the possibility of denial-of-service which could disrupt services. Given the nature of the vulnerability and the potential for exploitation, organizations should prioritize patching immediately to mitigate this risk.

The blast radius could extend to any system using the vulnerable versions of openCryptoki, making it crucial for organizations to assess their deployments. The urgency for addressing this vulnerability is classified as medium, considering the CVSS score of 6.6 and the potential for exploitation, although current intelligence indicates that it is not actively exploited in the wild.

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The affected versions of openCryptoki include 3.25.0 and 3.26.0. Organizations should ensure they are updated to the latest patched versions to mitigate the effects of this vulnerability.

Mitigation & Remediation

Organizations should apply the patches released by the vendor to address this vulnerability. Specific commits addressing the issue can be found in the following links:

Patch commit 1 and Patch commit 2 provide necessary changes to mitigate this vulnerability. In addition to patching, organizations should review their security configurations and implement network controls to limit access to the vulnerable library.

Detection Guidance

Monitoring logs for any anomalies related to the execution of the CKM_ECDH_AES_KEY_WRAP function can help identify potential exploitation attempts. Look for unusual patterns in memory usage or errors indicating heap corruption.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2026-22791 underscores the importance of rigorous code reviews and thorough testing to avoid vulnerabilities such as heap buffer overflows. This incident highlights the necessity for organizations to maintain a proactive approach to security through regular updates and vulnerability management.

As part of a comprehensive security strategy, organizations should consider engaging in regular red teaming services to assess the effectiveness of their defenses against such vulnerabilities. Continuous security assessment and penetration testing play a critical role in identifying and addressing weaknesses before they can be exploited.

Finally, organizations should stay informed about trends in vulnerability exposure and security practices to adapt their strategies accordingly. Resources such as the vulnerability management program design can provide valuable insights into effective risk mitigation.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.