GHSA-4fcv-w3qc-ppgg
MEDIUMrust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`
When a Some(...) value was passed to the properties argument of either of these functions, a use-after-free would result.
In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to CString::drop's behavior).
The maintainers thank quitbug for reporting this vulnerability to us.
- Published
- 4 Apr 2025
- Last modified
- 10 Sep 2026
- Weakness
- CWE-416
- Also known as
- RUSTSEC-2025-0022
- Sources
- OSVJSONOSV RUSTSEC-2025-0022JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | openssl | >= 0.10.39, < 0.10.72 | 0.10.72 |
References
- https://github.com/sfackler/rust-openssl/pull/2390 · WEB
- https://github.com/sfackler/rust-openssl/commit/87085bd67896b7f92e6de35d081f607a334beae4 · WEB
- https://github.com/sfackler/rust-openssl · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0022.html · WEB, ADVISORY
- https://crates.io/crates/openssl · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Apr 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Apr 2025)