Buffer overflow in `MdCtxRef::digest_final`
Historical advisory saved 10 Nov 2026 14:21:29 UTC. The publisher may have updated it since then. Latest advisory.
osv · RUSTSEC-2026-0475
Published`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.
- Source published
- 19 Apr 2026 12:00:00 UTC
- Source modified
- 10 Nov 2026 14:00:02 UTC
- Saved here
- 10 Nov 2026 14:21:29 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.