{"id":"GHSA-q445-7m23-qrmw","aliases":["GHSA-q445-7m23-qrmw","RUSTSEC-2024-0357"],"related":[],"kind":"vulnerability","state":"published","title":"openssl's `MemBio::get_buf` has undefined behavior with empty buffers","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2024-07-21T12:00:00.000Z","modified":"2026-09-10T03:50:16.826Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.10.66"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.10.66"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"rustsec"}],"references":[{"url":"https://github.com/sfackler/rust-openssl/pull/2266","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sfackler/rust-openssl","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.66","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0357.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/openssl","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q445-7m23-qrmw","url":"https://github.com/advisories/GHSA-q445-7m23-qrmw","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.826Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0357","url":"https://rustsec.org/advisories/RUSTSEC-2024-0357.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:25.883Z"}],"updatedAt":"2026-11-25T22:56:43.205Z"}