CVE-2026-41681CWE-121

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

High · published April 24, 2026

CVSS v4.0
8.1
EPSS
0%
Percentile
28.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.1 · HIGH
Vector
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
EPSS
0.00359 · 28.5th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2026-04-24T17:19Z
EPSS history
Timeline
  • 24 APR 17:19Z
    rust-openssl: MdCtxRef::digest_final() writes past caller buffer with no length check
    cvelistv5