CVE-2026-41681 json
rust-openssl: MdCtxRef::digest_final() writes past caller buffer with no length check
published 2026-04-22 6 mo ago modified 2026-09-10 1 mo ago also GHSA-ghm9-cr32-g9qj , EUVD-2026-25586
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.39 to before 0.10.78, EVP_DigestFinal() always writes EVP_MD_CTX_size(ctx) to the out buffer. If out is smaller than that, MdCtxRef::digest_final() writes past its end, usually corrupting the stack. This is reachable from safe Rust. This vulnerability is fixed in 0.10.78.
Patch / fix
- crates.io openssl 0.10.78
- rust-openssl_project rust-openssl 0.10.78
- rust-openssl Debian 14 0.10.78-1
debian advisories DEBIAN-CVE-2026-41681
- rustup SLES for SAP applications 16.0, SLES 16.0 1.29.1~0-160000.1.1
- sccache SLES for SAP applications 16.0, SLES 16.0 0.18.0~2-160000.1.1
- snpguest SLE Module for Server Applications 15 SP7 0.10.0-150700.3.6.1
- snphost SLES for SAP applications 16.0, SLES 16.0 0.6.0-160000.3.1
- snphost SLE Module for Confidential Computing Technical Preview 15 SP7 0.6.1-150700.3.6.1
- snpguest SLES for SAP applications 16.0, SLES 16.0 0.10.0-160000.2.1
- himmelblau SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES 15 SP6-LTSS +3 more 2.3.14+git0.e23b4c54-150500.11.12.1
- afterburn Linux Micro 6.1 5.10.0.git73.b97f772-slfo.1.1_1.1
suse advisories SUSE-SU-2026:24014-1SUSE-SU-2026:23983-1SUSE-SU-2026:3791-1SUSE-SU-2026:23327-1SUSE-SU-2026:3642-1SUSE-SU-2026:23236-1
- rustup openSUSE Leap 16.0 1.29.1~0-160000.1.1
- sccache openSUSE Leap 16.0 0.18.0~2-160000.1.1
- sdbootutil openSUSE Leap 16.0 1+git20260908.c641fc2-160000.1.1
- snpguest openSUSE Tumbleweed 0.10.0-3.1
- snphost openSUSE Tumbleweed 0.7.0-3.1
- snphost openSUSE Leap 16.0 0.6.0-160000.3.1
- snpguest openSUSE Leap 16.0 0.10.0-160000.2.1
- libkrun openSUSE Leap 16.0 1.4.10-160000.3.1
opensuse advisories openSUSE-SU-2026:22016-1openSUSE-SU-2026:21982-1openSUSE-SU-2026:21933-1openSUSE-SU-2026:11653-1openSUSE-SU-2026:11654-1openSUSE-SU-2026:21638-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-41681 updated cvss 9.8
rust-openssl: rust-openssl: Memory corruption due to buffer overflow in EVP_DigestFinal()
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U |
| CNA | 4.0 | 8.1 | CVSS:4.0/AV:N/AC:L/AT:N/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 |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | openssl | >=0.10.39, <0.10.78 |
0.10.78 |
Affected products
- rust-openssl rust-openssl
Classification
- Weakness
-
- CWE-121 Stack-based Buffer Overflow
References
-
github.com
/rust-openssl/rust-openssl/pull/2608
web, issue-tracking
-
github.com
/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe
web, patch
-
github.com
/rust-openssl/rust-openssl/security/advisories/GHSA-ghm9-cr32-g9qj
web, vendor-advisory
-
github.com
/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-41681
advisory
-
github.com
/rust-openssl/rust-openssl
package
Sources
- CVE List CVE-2026-41681
- GitHub Advisory GHSA-ghm9-cr32-g9qj
- NVD CVE-2026-41681
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.