# GHSA-4fcv-w3qc-ppgg: rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-04-04T12:00:00.000Z
- Modified: 2026-09-10T03:50:56.938Z
- Also known as: RUSTSEC-2025-0022
- Weaknesses: CWE-416

## Description

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](https://github.com/quitbug/) for reporting this vulnerability to us.

(As written by GitHub Advisory Database.)

## Affected

- openssl (crates.io): from 0.10.39 before 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> (advisory, web)
- <https://crates.io/crates/openssl> (package)

## Sources

- GitHub Advisory Database: [GHSA-4fcv-w3qc-ppgg](https://github.com/advisories/GHSA-4fcv-w3qc-ppgg), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0022](https://rustsec.org/advisories/RUSTSEC-2025-0022.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-4fcv-w3qc-ppgg · Whole record: https://cve.day/GHSA-4fcv-w3qc-ppgg.json · Rebuilt by cve.day 2026-11-25T22:56:43.251Z
