{"id":"RUSTSEC-2026-0475","revision":"23e1077796ee41549e3a35cebcec2853","records":[{"revision":"23e1077796ee41549e3a35cebcec2853","observedAt":"2026-11-10T14:21:29.97+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0475","aliases":["CVE-2026-41681","GHSA-ghm9-cr32-g9qj"],"title":"Buffer overflow in `MdCtxRef::digest_final`","description":"`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.\n\n`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.","state":0,"publishedAt":"2026-04-19T12:00:00+00:00","modifiedAt":"2026-11-10T14:00:02.4876539+00:00","affected":[{"ecosystem":"crates.io","name":"openssl","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.10.39"},{"kind":"fixed","version":"0.10.78"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/openssl","https://rustsec.org/advisories/RUSTSEC-2026-0475.html","https://github.com/rust-openssl/rust-openssl/pull/2608"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0475","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0475","identifiers":["RUSTSEC-2026-0475","CVE-2026-41681","GHSA-ghm9-cr32-g9qj"]},"retained":false,"historicalAffected":[]}],"coverage":[]}