CVE-2026-41681

GHSA-ghm9-cr32-g9qj · RUSTSEC-2026-0475 · published 19 Apr 2026 · updated 12 Nov 2026

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

8.1HighCVSS 8.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.10.78 and openssl 0.10.78.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
rust-openssl>=0.10.39 <0.10.78
rust-openssl_projectrust-openssl>=0.10.39 <0.10.780.10.78
cargo: openssl>=0.10.39 <0.10.780.10.78

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in openssl (Cargo), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-41681 severity on Zeptric[![CVE-2026-41681](https://zeptric.io/badge/cve/CVE-2026-41681.svg)](https://zeptric.io/cve/CVE-2026-41681)