CVE-2026-41681
HIGH 8.1CVSS 4.0rust-openssl: rustMdCtxRef::digest_final() writes past caller buffer with no length check
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.
- Published
- 24 Apr 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-121
- Also known as
- GHSA-ghm9-cr32-g9qjRUSTSEC-2026-0475
- Sources
- NVDJSONOSV GHSA-ghm9-cr32-g9qjJSONOSV RUSTSEC-2026-0475JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rust-openssl_project | rust-opensslcpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:* |
>= 0.10.39, < 0.10.78 | 0.10.78 |
| OSV | crates.io | openssl | >= 0.10.39, < 0.10.78 | 0.10.78 |
References
- https://github.com/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe · Patch, WEB
- https://github.com/rust-openssl/rust-openssl/pull/2608 · Issue Tracking, WEB
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78 · Release Notes, WEB
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-ghm9-cr32-g9qj · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41681 · ADVISORY
- https://github.com/rust-openssl/rust-openssl · PACKAGE
- https://crates.io/crates/openssl · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0475.html · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Apr 2026)