{"id":"GHSA-4fcv-w3qc-ppgg","aliases":["RUSTSEC-2025-0022"],"status":"published","title":"rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`","description":"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.","severity":{"version":"4.0","score":6.3,"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","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2025-04-04T12:00:00Z","modified":"2026-09-10T03:50:56Z","fixes":[{"ecosystem":"crates.io","package":"openssl","fixed_in":["0.10.72"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"openssl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.10.39"},{"fixed":"0.10.72"}]}]},{"source":"osv","ecosystem":"crates.io","package":"openssl","ranges":[{"type":"SEMVER","events":[{"introduced":"0.10.39"},{"fixed":"0.10.72"}]}]},{"source":"osv","ecosystem":"crates.io","package":"openssl","ranges":[{"type":"SEMVER","events":[{"introduced":"0.10.39"},{"fixed":"0.10.72"}]}]}],"references":[{"url":"https://github.com/sfackler/rust-openssl/pull/2390","tags":["web"]},{"url":"https://github.com/sfackler/rust-openssl/commit/87085bd67896b7f92e6de35d081f607a334beae4","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0022.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-4fcv-w3qc-ppgg"},{"url":"https://github.com/sfackler/rust-openssl","tags":["package"]},{"url":"https://crates.io/crates/openssl","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-4fcv-w3qc-ppgg","title":"rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`","description":"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.","status":"published","published":"2025-04-04T20:31:08Z","modified":"2025-04-04T20:31:09Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:38:38.344711Z"}],"osv":[{"id":"GHSA-4fcv-w3qc-ppgg","title":"rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`","description":"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.","status":"published","published":"2025-04-04T20:31:08Z","modified":"2026-09-10T03:50:56.938932795Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:46:36.782754Z"},{"id":"RUSTSEC-2025-0022","title":"Use-After-Free in `Md::fetch` and `Cipher::fetch`","description":"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.","status":"published","published":"2025-04-04T12:00:00Z","modified":"2025-10-28T06:29:22.917994Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
