{"id":"RUSTSEC-2024-0357","revision":"643206b9afc04fec8302b2cb95bcb0bd","records":[{"revision":"643206b9afc04fec8302b2cb95bcb0bd","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0357","aliases":["GHSA-q445-7m23-qrmw"],"title":"`MemBio::get_buf` has undefined behavior with empty buffers","description":"Previously, `MemBio::get_buf` called `slice::from_raw_parts` with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.","state":0,"publishedAt":"2024-07-21T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:25.883814+00:00","affected":[{"ecosystem":"crates.io","name":"openssl","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.10.66"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/openssl","https://rustsec.org/advisories/RUSTSEC-2024-0357.html","https://github.com/sfackler/rust-openssl/pull/2266"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0357","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0357","identifiers":["RUSTSEC-2024-0357","GHSA-q445-7m23-qrmw"]},"retained":false,"historicalAffected":[]}],"coverage":[]}