Vulnerability RUSTSEC-2026-0475

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
6 months ago
April 19, 2026 at 12:00 PM UTC
Buffer overflow in `MdCtxRef::digest_final`
>=0.10.39 <0.10.78
>=0.10.39 <0.10.78

Summary

Buffer overflow in `MdCtxRef::digest_final`

Details

MdCtxRef::digest_final passed the caller's output slice to OpenSSL's EVP_DigestFinal without checking its length. EVP_DigestFinal always writes the full digest (EVP_MD_CTX_size bytes), so an output slice shorter than the digest is overrun. With a stack buffer this usually corrupts the stack. The overflow is reachable from safe code.

MdCtxRef was added in 0.10.39. 0.10.78 checks the slice length first and returns an error when the slice is too short for the digest.

Impacted packages

Timeline

Published
6 months ago
April 19, 2026 at 12:00 PM UTC
Fixed (0.10.78)
6 months ago
April 19, 2026 at 08:02 PM UTC
Last Modified
14 hours ago
November 10, 2026 at 02:00 PM UTC