{"id":"GHSA-4fcv-w3qc-ppgg","summary":"rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`","details":"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.","aliases":["RUSTSEC-2025-0022"],"modified":"2026-09-10T03:50:56.938932795Z","published":"2025-04-04T20:31:08Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2025-04-04T20:31:08Z","nvd_published_at":null,"cwe_ids":["CWE-416"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/sfackler/rust-openssl/pull/2390"},{"type":"WEB","url":"https://github.com/sfackler/rust-openssl/commit/87085bd67896b7f92e6de35d081f607a334beae4"},{"type":"PACKAGE","url":"https://github.com/sfackler/rust-openssl"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2025-0022.html"}],"affected":[{"package":{"name":"openssl","ecosystem":"crates.io","purl":"pkg:cargo/openssl"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.10.39"},{"fixed":"0.10.72"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-4fcv-w3qc-ppgg/GHSA-4fcv-w3qc-ppgg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}