cve.bz

CVE-2026-41676 rust-openssl project rust-openssl: Incorrect Calculation of Buffer Size

7.2 highEPSS 0.3%Fix available

High (7.2) in rust-openssl project rust-openssl. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in openssl 0.10.78.

On this page
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.

Severity

CVSS 4.0

7.2 high
CVSS: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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-04-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-131 Incorrect Calculation of Buffer Size
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41676 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41676?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41676?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41676 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rust-openssl_project:rust-opensslfrom 0.9.27 before 0.10.78

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pqf5-4pqq-29f5crates.ioopenssl>=0.9.27 <0.10.780.10.78
RUSTSEC-2026-0473crates.ioopenssl>=0.9.27 <0.10.780.10.78

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13rust-opensslno fix listedDEBIAN-CVE-2026-41676
Debian14rust-openssl0.10.78-1DEBIAN-CVE-2026-41676
Ubuntu25.10, 26.04:LTS, 26.10 and 3 morerust-opensslno fix listedUBUNTU-CVE-2026-41676
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 6 morepython-cryptography41.0.3-150400.16.25.1SUSE-SU-2026:3040-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 moreclamav1.5.3-150400.13.8.1SUSE-SU-2026:2834-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morerustup1.28.2~0-150400.3.13.1SUSE-SU-2026:2831-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 3 morehimmelblau2.3.14+git0.e23b4c54-150500.11.12.1SUSE-SU-2026:3576-1
SUSELinux Enterprise Micro 5.3afterburn5.10.0.git73.b97f772-150400.3.6.1SUSE-SU-2026:2976-1
SUSELinux Enterprise Micro 5.3rust-keylime0.2.9+49-150400.3.21.1SUSE-SU-2026:2825-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4s390-tools2.31.0-150400.7.34.1SUSE-SU-2026:3474-1
SUSELinux Enterprise Micro 5.4afterburn5.10.0.git73.b97f772-150400.3.6.1SUSE-SU-2026:2977-1
SUSELinux Enterprise Micro 5.4rust-keylime0.2.9+49-150400.3.19.1SUSE-SU-2026:2826-1
SUSELinux Enterprise Micro 5.5afterburn5.10.0.git73.b97f772-150500.3.6.1SUSE-SU-2026:2975-1
SUSELinux Enterprise Micro 5.5clamav1.5.3-150400.13.8.1SUSE-SU-2026:2834-2
SUSELinux Enterprise Micro 5.5rust-keylime0.2.9+49-150500.3.19.1SUSE-SU-2026:2807-1
31 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0afterburn5.10.0.git73.b97f772-160000.1.1openSUSE-SU-2026:21386-1
openSUSELeap 16.0aws-nitro-enclaves-cli1.5.0~git0.2950b36-160000.1.1openSUSE-SU-2026:21782-1
openSUSELeap 16.0clamav1.5.3-160000.1.1openSUSE-SU-2026:21252-1
openSUSELeap 16.0libkrun1.4.10-160000.3.1openSUSE-SU-2026:21464-1
openSUSELeap 16.0python-cryptography44.0.3-160000.4.1openSUSE-SU-2026:21294-1
openSUSELeap 16.0python-maturin1.8.7-160000.5.1openSUSE-SU-2026:21285-1
openSUSELeap 16.0rust-keylime0.2.9+49-160000.1.1openSUSE-SU-2026:21274-1
openSUSELeap 16.0rustup1.29.1~0-160000.1.1openSUSE-SU-2026:22016-1
openSUSELeap 16.0sccache0.18.0~2-160000.1.1openSUSE-SU-2026:21982-1
openSUSELeap 16.0sdbootutil1+git20260908.c641fc2-160000.1.1openSUSE-SU-2026:21933-1
openSUSETumbleweedafterburn5.10.0.git73.b97f772-1.1openSUSE-SU-2026:11255-1
openSUSETumbleweedcargo-c0.10.23-1.1openSUSE-SU-2026:11210-1
6 more for openSUSE in the JSON and on openSUSE's page.
Azure Linux3389-ds-baseno fix listedAZL-83618

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON