{"id":"RUSTSEC-2024-0357","summary":"`MemBio::get_buf` has undefined behavior with empty buffers","details":"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.","aliases":["GHSA-q445-7m23-qrmw"],"modified":"2025-10-28T06:29:25.883814Z","published":"2024-07-21T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/openssl"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2024-0357.html"},{"type":"WEB","url":"https://github.com/sfackler/rust-openssl/pull/2266"}],"affected":[{"package":{"name":"openssl","ecosystem":"crates.io","purl":"pkg:cargo/openssl"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.10.66"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":["openssl::bio::MemBio::get_buf"],"os":[]}},"database_specific":{"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0357.json","categories":[],"cvss":null}}],"schema_version":"1.7.3"}