Skip to content

Commit

Permalink
bumped russh to fix CVE-2023-28113
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Mar 17, 2023
1 parent 2636019 commit 6b3b49a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion warpgate-admin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ poem-openapi = { version = "2.0.21", features = [
"uuid",
"static-files",
] }
russh-keys = { version = "0.23.0-beta.1", features = ["openssl"] }
russh-keys = { version = "0.37.1", features = ["openssl"] }
# russh-keys = { version = "0.23.0-beta.1", features = ["openssl"], path = "../../russh/russh-keys" }
rust-embed = "6.3"
sea-orm = { version = "0.10.6", features = [
Expand Down
4 changes: 2 additions & 2 deletions warpgate-protocol-ssh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ bimap = "0.6"
bytes = "1.3"
dialoguer = "0.10"
futures = "0.3"
russh = { version = "0.35.0-beta.9", features = ["vendored-openssl"] }
russh = { version = "0.37.1", features = ["vendored-openssl"] }
# russh = { version = "0.35.0-beta.6", features = ["vendored-openssl"], path = "../../russh/russh"}
russh-keys = { version = "0.23.0-beta.1", features = ["vendored-openssl"] }
russh-keys = { version = "0.37.1", features = ["vendored-openssl"] }
# russh-keys = { version = "0.23.0-beta.1", features = ["vendored-openssl"], path = "../../russh/russh-keys" }
sea-orm = { version = "0.10.6", features = [
"runtime-tokio-native-tls",
Expand Down
6 changes: 3 additions & 3 deletions warpgate-protocol-ssh/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ impl RemoteClient {

async fn open_shell(&mut self, channel_id: Uuid) -> Result<(), SshClientError> {
if let Some(session) = &self.session {
let mut session = session.lock().await;
let session = session.lock().await;
let channel = session.channel_open_session().await?;

let (tx, rx) = unbounded_channel();
Expand All @@ -536,7 +536,7 @@ impl RemoteClient {
params: DirectTCPIPParams,
) -> Result<(), SshClientError> {
if let Some(session) = &self.session {
let mut session = session.lock().await;
let session = session.lock().await;
let channel = session
.channel_open_direct_tcpip(
params.host_to_connect,
Expand Down Expand Up @@ -577,7 +577,7 @@ impl RemoteClient {
port: u32,
) -> Result<bool, SshClientError> {
if let Some(session) = &self.session {
let mut session = session.lock().await;
let session = session.lock().await;
Ok(session.cancel_tcpip_forward(address, port).await?)
} else {
self.pending_forwards
Expand Down

0 comments on commit 6b3b49a

Please sign in to comment.