diff --git a/crates/openssl/RUSTSEC-0000-0000.md b/crates/openssl/RUSTSEC-0000-0000.md new file mode 100644 index 000000000..1dc5cadf5 --- /dev/null +++ b/crates/openssl/RUSTSEC-0000-0000.md @@ -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`.