From acafb0895d8d58115f003ff39c94264413b0da1d Mon Sep 17 00:00:00 2001 From: Jiang Liu Date: Wed, 21 Jun 2023 09:42:36 +0800 Subject: [PATCH] dep: upgrade openssl to 0.10.55 to fix cve warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error[vulnerability]: `openssl` `X509VerifyParamRef::set_host` buffer over-read ┌─ /github/workspace/Cargo.lock:122:1 │ 122 │ openssl 0.10.48 registry+https://github.com/rust-lang/crates.io-index │ --------------------------------------------------------------------- security vulnerability detected │ = ID: RUSTSEC-2023-0044 = Advisory: https://rustsec.org/advisories/RUSTSEC-2023-0044 = When this function was passed an empty string, `openssl` would attempt to call `strlen` on it, reading arbitrary memory until it reached a NUL byte. = Announcement: https://github.com/sfackler/rust-openssl/issues/1965 = Solution: Upgrade to >=0.10.55 Signed-off-by: Jiang Liu --- Cargo.lock | 9 ++++----- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5025c523362..15c7a1dde90 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1356,9 +1356,9 @@ checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1" [[package]] name = "openssl" -version = "0.10.48" +version = "0.10.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518915b97df115dd36109bfa429a48b8f737bd05508cf9588977b599648926d2" +checksum = "345df152bc43501c5eb9e4654ff05f794effb78d4efe3d53abc158baddc0703d" dependencies = [ "bitflags", "cfg-if", @@ -1397,11 +1397,10 @@ dependencies = [ [[package]] name = "openssl-sys" -version = "0.9.83" +version = "0.9.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "666416d899cf077260dac8698d60a60b435a46d57e82acb1be3d0dad87284e5b" +checksum = "374533b0e45f3a7ced10fcaeccca020e66656bc03dac384f852e4e5a7a8104a6" dependencies = [ - "autocfg", "cc", "libc", "openssl-src", diff --git a/Cargo.toml b/Cargo.toml index 41989c77aa0..de0c2d9c2ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,7 @@ vmm-sys-util = "0.10.0" xattr = "0.2.3" # Build static linked openssl library -openssl = { version = "0.10.48", features = ["vendored"] } +openssl = { version = "0.10.55", features = ["vendored"] } # pin openssl-src to bring in fix for https://rustsec.org/advisories/RUSTSEC-2022-0032 #openssl-src = { version = "111.22" }