openssl X509StoreRef::objects is unsound (#1824)

This commit is contained in:
Alex Gaynor
2023-11-28 09:16:52 -05:00
committed by GitHub
parent a9468c3c3a
commit c420785f45

View File

@@ -0,0 +1,21 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "openssl"
date = "2023-11-23"
url = "https://github.com/sfackler/rust-openssl/issues/2096"
informational = "unsound"
categories = ["memory-corruption"]
[affected]
functions = { "openssl::x509::store::X509StoreRef::objects" = ["< 0.10.60, >=0.10.29"] }
[versions]
patched = [">= 0.10.60"]
```
# `openssl` `X509StoreRef::objects` is unsound
This function returned a reference into an OpenSSL datastructure, but there was no way to ensure OpenSSL would not mutate the datastructure behind ones back.
Use of this function should be replaced with `X509StoreRef::all_certificates`.