{"id":"GHSA-4fcv-w3qc-ppgg","aliases":["GHSA-4fcv-w3qc-ppgg","RUSTSEC-2025-0022"],"related":[],"kind":"vulnerability","state":"published","title":"rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`","summary":"When a `Some(...)` value was passed to the `properties` argument of either of these functions, a use-after-free would result.\n\nIn practice this would nearly always result in OpenSSL treating the properties as an empty string (due to `CString::drop`'s behavior).\n\nThe maintainers thank [quitbug](https://github.com/quitbug/) for reporting this vulnerability to us.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"When a `Some(...)` value was passed to the `properties` argument of either of these functions, a use-after-free would result.\n\nIn practice this would nearly always result in OpenSSL treating the properties as an empty string (due to `CString::drop`'s behavior).\n\nThe maintainers thank [quitbug](https://github.com/quitbug/) for reporting this vulnerability to us.","format":"markdown","source":"ghsa"}],"published":"2025-04-04T12:00:00.000Z","modified":"2026-09-10T03:50:56.938Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"semver","introduced":"0.10.39","status":"affected","fixed":"0.10.72"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.10.39","status":"affected","fixed":"0.10.72"}],"ecosystem":"crates.io","package":"openssl","purl":"pkg:cargo/openssl","source":"rustsec"}],"references":[{"url":"https://github.com/sfackler/rust-openssl/pull/2390","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/sfackler/rust-openssl/commit/87085bd67896b7f92e6de35d081f607a334beae4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sfackler/rust-openssl","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0022.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-4fcv-w3qc-ppgg","url":"https://github.com/advisories/GHSA-4fcv-w3qc-ppgg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.938Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0022","url":"https://rustsec.org/advisories/RUSTSEC-2025-0022.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:22.917Z"}],"updatedAt":"2026-11-25T22:56:43.251Z"}