CVE-2026-41676
CVE-2026-41676 is a critical-severity vulnerability in Rust-openssl Project Rust-openssl with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-131.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- CVSS v4: 7.2
- EPSS exploit prediction: 0% (22nd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-25582
- Weakness: CWE-131
- Affected product: Rust-openssl Project Rust-openssl
- Published:
- Last modified:
Description
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, 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.
Frequently asked questions
- What is CVE-2026-41676?
- 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, 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.
- How severe is CVE-2026-41676?
- CVE-2026-41676 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-41676 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (22nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-41676?
- CVE-2026-41676 affects Rust-openssl Project Rust-openssl. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-41676?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2026-41676 have an EU (EUVD) identifier?
- Yes. CVE-2026-41676 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-25582.
- When was CVE-2026-41676 published?
- CVE-2026-41676 was published on 2026-04-24 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:*
More vulnerabilities in Rust-openssl Project Rust-openssl
- CVE-2026-41898 — Critical (CVSS 9.8): rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.24 to before 0.10.78, the FFI…
- CVE-2026-41681 — Critical (CVSS 9.8): rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.39 to before 0.10.78,…
- CVE-2026-41678 — Critical (CVSS 9.8): rust-openssl provides OpenSSL bindings for the Rust programming language. From to before 0.10.78, aes::unwrap_key()…
- CVE-2018-20997 — Critical (CVSS 9.8): An issue was discovered in the openssl crate before 0.10.9 for Rust. A use-after-free occurs in CMS Signing.
- CVE-2026-41677 — Critical (CVSS 9.1): rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.0 to before 0.10.78, the…
- CVE-2016-10931 — High (CVSS 8.1): An issue was discovered in the openssl crate before 0.9.0 for Rust. There is an SSL/TLS man-in-the-middle vulnerability…
All CVEs affecting Rust-openssl Project Rust-openssl →
Other CWE-131 (Incorrect Calculation of Buffer Size) vulnerabilities
- CVE-2026-52955 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: libceph: Fix potential out-of-bounds access in…
- CVE-2026-1949 — Critical (CVSS 9.8): Delta Electronics AS320T has incorrect calculation of the buffer size on the stack in the GET/PUT request handler of…
- CVE-2026-20911 — Critical (CVSS 9.8): A heap-based buffer overflow vulnerability exists in the HuffTable::initval functionality of LibRaw Commit 0b56545 and…
- CVE-2025-1861 — Critical (CVSS 9.8): In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when…
- CVE-2023-5941 — Critical (CVSS 9.8): In versions of FreeBSD 12.4-RELEASE prior to 12.4-RELEASE-p7 and FreeBSD 13.2-RELEASE prior to 13.2-RELEASE-p5 the…
- CVE-2022-33211 — Critical (CVSS 9.8): memory corruption in modem due to improper check while calculating size of serialized CoAP message
Browse all CWE-131 (Incorrect Calculation of Buffer Size) vulnerabilities →