CVE Catalog

CVE-2026-41681

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.37%

29th percentile - higher than 29% of all known CVEs

Summary

In the rust-openssl library versions 0.10.39 through 0.10.77, there is a buffer overflow vulnerability in the EVP_DigestFinal() function. This function always writes EVP_MD_CTX_size(ctx) bytes to the output buffer, which when the buffer is smaller leads to a write past its end and potential stack corruption. The issue is reachable from safe Rust code.

Risk Assessment

An attacker could exploit this vulnerability to corrupt the stack, potentially leading to unexpected application behavior, data leakage, or remote code execution in the context of the application using the library.

Recommendation

Immediately update the rust-openssl library to version 0.10.78 or later, which contains the fix for this vulnerability.

Other vulnerabilities in rust-openssl

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS