diff --git a/Cargo.lock b/Cargo.lock
index acb28492..7773e3a7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1753,15 +1753,6 @@ version = "0.6.28"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
 
-[[package]]
-name = "remove_dir_all"
-version = "0.5.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
-dependencies = [
- "winapi",
-]
-
 [[package]]
 name = "reqwest"
 version = "0.11.14"
@@ -2194,16 +2185,15 @@ dependencies = [
 
 [[package]]
 name = "tempfile"
-version = "3.3.0"
+version = "3.4.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
+checksum = "af18f7ae1acd354b992402e9ec5864359d693cd8a79dcbef59f76891701c1e95"
 dependencies = [
  "cfg-if",
  "fastrand",
- "libc",
  "redox_syscall",
- "remove_dir_all",
- "winapi",
+ "rustix 0.36.8",
+ "windows-sys 0.42.0",
 ]
 
 [[package]]
diff --git a/crates/bin/Cargo.toml b/crates/bin/Cargo.toml
index c5d45739..7b51739a 100644
--- a/crates/bin/Cargo.toml
+++ b/crates/bin/Cargo.toml
@@ -37,7 +37,7 @@ semver = "1.0.16"
 strum = "0.24.1"
 strum_macros = "0.24.3"
 supports-color = "2.0.0"
-tempfile = "3.3.0"
+tempfile = "3.4.0"
 tokio = { version = "1.25.0", features = ["rt-multi-thread"], default-features = false }
 tracing-core = "0.1.30"
 tracing = { version = "0.1.37", default-features = false }
diff --git a/crates/binstalk-downloader/Cargo.toml b/crates/binstalk-downloader/Cargo.toml
index 86491a98..579bfcd9 100644
--- a/crates/binstalk-downloader/Cargo.toml
+++ b/crates/binstalk-downloader/Cargo.toml
@@ -28,7 +28,7 @@ reqwest = { version = "0.11.14", features = ["stream", "gzip", "brotli", "deflat
 #
 #tar = "0.4.38"
 tar = { package = "binstall-tar", version = "0.4.39" }
-tempfile = "3.3.0"
+tempfile = "3.4.0"
 thiserror = "1.0.38"
 tokio = { version = "1.25.0", features = ["macros", "rt-multi-thread", "sync", "time", "fs"], default-features = false }
 tokio-tar = "0.3.0"
diff --git a/crates/binstalk-manifests/Cargo.toml b/crates/binstalk-manifests/Cargo.toml
index 7397e87c..7f323d33 100644
--- a/crates/binstalk-manifests/Cargo.toml
+++ b/crates/binstalk-manifests/Cargo.toml
@@ -26,4 +26,4 @@ url = { version = "2.3.1", features = ["serde"] }
 
 [dev-dependencies]
 detect-targets = { version = "0.1.5", path = "../detect-targets" }
-tempfile = "3.3.0"
+tempfile = "3.4.0"
diff --git a/crates/binstalk/Cargo.toml b/crates/binstalk/Cargo.toml
index 8a8bbc77..26d1e966 100644
--- a/crates/binstalk/Cargo.toml
+++ b/crates/binstalk/Cargo.toml
@@ -29,7 +29,7 @@ once_cell = "1.17.1"
 semver = { version = "1.0.16", features = ["serde"] }
 serde = { version = "1.0.152", features = ["derive"] }
 strum = "0.24.1"
-tempfile = "3.3.0"
+tempfile = "3.4.0"
 thiserror = "1.0.38"
 tinytemplate = "1.2.1"
 # parking_lot for `tokio::sync::OnceCell::const_new`
diff --git a/crates/detect-wasi/Cargo.toml b/crates/detect-wasi/Cargo.toml
index 01df98a6..c1b561e1 100644
--- a/crates/detect-wasi/Cargo.toml
+++ b/crates/detect-wasi/Cargo.toml
@@ -10,7 +10,7 @@ edition = "2021"
 license = "Apache-2.0 OR MIT"
 
 [dependencies]
-tempfile = "3.3.0"
+tempfile = "3.4.0"
 
 [package.metadata.binstall]
 pkg-url = "{ repo }/releases/download/v{ version }/cargo-binstall-{ target }.full.{ archive-format }"