CVE-2026-41676: rust-openssl_project rust-openssl Incorrect Calculation of Buffer Size
Vulnerability summary
CVE-2026-41676 is a high (CVSS 7.5) Incorrect Calculation of Buffer Size vulnerability in rust-openssl_project rust-openssl. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 19.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 53 · Related 54Timeline
- 24-04-2026PublishedVulnerability first disclosed.
- 24-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.2CriticalCVSS: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:UDiffers
- OSV · WolfiEcosystem advisory · calculated9.2CriticalCVSS: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:UDiffers
- OSV · ChainguardEcosystem advisory · calculated9.2CriticalCVSS: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:UDiffers
- OSV · Crates.ioEcosystem advisory · calculated9.2CriticalCVSS: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:UDiffers
- NVDNIST7.2HighCVSS: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
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
20%
Versus all other CVEs
30-day change
0.00 pp
From 0.29% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard20 products
- bootc-binary< 1.10.0-r5
- deno< 2.7.13-r0
- guestproxyagent< 1.0.42-r2 | < 1.0.43-r0
- komodo-cli< 2.1.2-r2
- komodo-core< 2.1.2-r2
Suse7 products
- cryptsetup&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7< 2.8.4-150700.6.4.4
- s390-tools&distro=SUSE Linux Enterprise Micro 5.3< 2.31.0-150400.7.34.1
- s390-tools&distro=SUSE Linux Enterprise Micro 5.4< 2.31.0-150400.7.34.1
- s390-tools&distro=SUSE Linux Enterprise Micro 5.5< 2.31.0-150500.9.32.1
- s390-tools&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7< 2.41.0-150700.4.26.2
Wolfi7 products
- deno< 2.7.13-r0
- rpm-sequoia< 1.10.1-r10
- rustup< 1.29.0-r5
- sccache< 0.14.0-r4
- sdp-identity-service< 1.3.10-r5
Opensuse3 products
- rustup&distro=openSUSE Tumbleweed< 1.28.2~0-4.1
- sccache&distro=openSUSE Tumbleweed< 0.16.0~0-2.1
- sdbootutil&distro=openSUSE Tumbleweed< 1+git20260706.f9f4faf-1.1
Crates.Io1 product
- openssl≥ 0.9.27, < 0.10.78
Debian1 product
- rust-opensslAll versions (No fix recorded) | < 0.10.78-1
Rust-openssl1 product
- rust-openssl≥ 0.9.27, < 0.10.78
Rust-openssl_project1 product
- rust-openssl≥ 0.9.27, < 0.10.78
Ubuntu1 product
- rust-opensslAll versions (No fix recorded)
9 vendors · 42 products
References
20 links- github.com/rust-openssl/rust-openssl/security/advisories/GHSA-pqf5-4pqq-29f5X Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory