From e559e130a0ea59b1c1313f34eb2d2d114db18ab7 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 23 Nov 2023 07:15:54 -0500 Subject: [PATCH] `openssl` `X509StoreRef::objects` is unsound --- crates/openssl/RUSTSEC-0000-0000.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 crates/openssl/RUSTSEC-0000-0000.md 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`.