# CVE-2026-41681: rust-openssl: MdCtxRef::digest_final() writes past caller buffer with no length check

- Severity: High 8.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-04-19T12:00:00.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-ghm9-cr32-g9qj, RUSTSEC-2026-0475
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rust-openssl rust-openssl: >= 0.10.39, < 0.10.78
- openssl (crates.io): from 0.10.39 before 0.10.78
- rust-openssl_project rust-openssl: from 0.10.39 before 0.10.78

## Every score

- GitHub_M: CVSS:4.0 8.1 High `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`
- GitHub: CVSS:4.0 High `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: 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`

## References

- <https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-ghm9-cr32-g9qj> (vendor-advisory, web)
- <https://github.com/rust-openssl/rust-openssl/pull/2608> (issue-tracking, web)
- <https://github.com/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe> (patch, web)
- <https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78> (release-notes, 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)

## Sources

- CVE List: [CVE-2026-41681](https://www.cve.org/CVERecord?id=CVE-2026-41681), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-ghm9-cr32-g9qj](https://github.com/advisories/GHSA-ghm9-cr32-g9qj), CC-BY-4.0, modified 2026-11-10
- RustSec Advisory Database: [RUSTSEC-2026-0475](https://rustsec.org/advisories/RUSTSEC-2026-0475.html), CC0-1.0, modified 2026-11-10
- NVD: [CVE-2026-41681](https://nvd.nist.gov/vuln/detail/CVE-2026-41681), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41681 · Whole record: https://cve.day/CVE-2026-41681.json · Rebuilt by cve.day 2026-11-25T22:59:19.553Z
