Cyber Resilience

CVE-2026-41676

Memory Safety in Rust-Openssl Project Rust-Openssl 0.9.27 – 0.10.78

Published
24 April 2026
Modified
15 July 2026
Patch / advisory
CVSS Score v4 7.2
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0029 21th percentile
Risk Priority 41 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-41676 is a high-severity Incorrect Calculation of Buffer Size (CWE-131) vulnerability in Rust-Openssl Project Rust-Openssl. Its CVSS base score is 7.2 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 21th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-41676 is a buffer overflow vulnerability in the rust-openssl crate, which provides OpenSSL bindings for the Rust programming language. It affects versions from 0.9.27 up to but not including 0.10.78, specifically in the Deriver::derive and PkeyCtxRef::derive functions. These functions set the length parameter to the provided buffer's length and pass it to OpenSSL's EVP_PKEY_derive. However, with OpenSSL 1.1.x, algorithms such as X25519, X448, DH, and HKDF-extract ignore this incoming key length and write the full shared secret (32 or 56 bytes, or prime size bytes) regardless. This leads to a heap or stack overflow when a caller provides a short buffer slice. OpenSSL 3.x providers properly check the length, limiting the issue to older OpenSSL versions. The vulnerability corresponds to CWE-131 (Incorrect Calculation of Buffer Size) and CWE-787 (Out-of-bounds Write).

Attackers can exploit this remotely with low complexity and no privileges or user interaction required, as indicated by the CVSS 3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). Exploitation occurs when an application using the affected rust-openssl versions and OpenSSL 1.1.x invokes the vulnerable derive functions with an undersized buffer. A malicious actor controlling inputs to such an application—such as in a key derivation process during cryptographic operations—can trigger the overflow, potentially leading to arbitrary code execution, data corruption, or denial of service through high-impact confidentiality, integrity, and availability violations.

The rust-openssl security advisory at https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-pqf5-4pqq-29f5 details the issue and confirms the fix in version 0.10.78, recommending immediate upgrades for affected users. Practitioners should verify OpenSSL versions in their Rust dependencies and audit code using these derive functions, especially in cryptographic libraries or applications handling key exchanges.

EU & UK References

Vulnerability Data

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.27 to before 0.10.78, Deriver::derive (and PkeyCtxRef::derive) sets len = buf.len() and passes it as the in/out length to EVP_PKEY_derive, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519,…

more

X448, DH and HKDF-extract ignore the incoming *keylen, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL. This vulnerability is fixed in 0.10.78.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-53143Shared CWE-131, CWE-787
CVE-2023-24819Shared CWE-131, CWE-787
CVE-2024-23622Shared CWE-131, CWE-787
CVE-2026-70457Shared CWE-131, CWE-787
CVE-2025-66216Shared CWE-131, CWE-787
CVE-2026-55827Shared CWE-131, CWE-787
CVE-2024-23606Shared CWE-131, CWE-787
CVE-2023-2687Shared CWE-131, CWE-787
CVE-2026-43501Shared CWE-131, CWE-787
CVE-2023-5941Shared CWE-131, CWE-787

Affected Assets

rust-openssl project
rust-openssl
0.9.27 — 0.10.78

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer security testing and code review can discover incorrect buffer-size computations before deployment.

Requiring documented secure-development standards and tools can mandate bounds-checked coding practices that avoid the weakness.

Secure engineering principles directly require correct buffer-size arithmetic and bounds-checked allocation.

Input validation can enforce that supplied lengths or counts used in size calculations are within safe bounds.

Memory-protection mechanisms limit the exploitability of an overflow that results from an incorrect size calculation.

Flaw-remediation processes that include vulnerability scanning or static analysis will surface buffer-size errors.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly prevent buffer-size miscalculations via coding standards, reviews, and testing, while fixing this single weakness only partially fulfills the broader control.

ID.RA-01 partial match
prevents

Vulnerability scanning and recording can discover out-of-bounds write flaws so they can be remediated.

PR.PS-02 partial match
prevents

Patching or replacing vulnerable software directly eliminates known instances of this coding weakness.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

degrades

Secure coding standards directly require correct buffer-size calculations.

finds

Security testing can detect buffer-size errors before release.

prevents

Secure development lifecycle mandates size-checking practices that reduce buffer-size miscalculations.

prevents

Application security requirements can specify buffer-size validation rules.

prevents

Secure architecture principles include safe memory-allocation guidelines.

prevents

Change management can enforce review gates that catch unsafe memory operations before deployment.

References