GHSA-ghm9-cr32-g9qjHigh

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

Published
April 22, 2026
Last Modified
April 27, 2026

🔗 CVE IDs covered (1)

📋 Description

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.

🎯 Affected products1

  • rust/openssl:>= 0.10.39, < 0.10.78

🔗 References (6)