rust-openssl Use-After-Free in `Md::fetch` and `Cipher::fetch`GHSA-4fcv-w3qc-ppgg
Fix: sfackler/rust-openssl#2390GHSA-4fcv-w3qc-ppgg is a security vulnerability in openssl. A fix is available for openssl — see the affected versions and patch details below.
Real-World Exposure
opensslReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
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 for reporting this vulnerability to us.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | openssl | ≥ 0.10.39&&< 0.10.72 | 0.10.72cargo update -p openssl --precise 0.10.72 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for openssl, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update openssl to 0.10.72 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-4fcv-w3qc-ppgg is resolved across your whole dependency graph.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Frequently Asked Questions
Is GHSA-4fcv-w3qc-ppgg in your dependencies?
Find it across crates.io, including transitive dependencies.