This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate bssh

Dependencies

(41 total, 2 possibly insecure)

CrateRequiredLatestStatus
 tokio^1.47.11.48.0up to date
 russh^0.54.60.54.6up to date
 russh-sftp^2.1.12.1.1up to date
 clap^44.5.53up to date
 anyhow^1.0.991.0.100up to date
 thiserror^2.0.162.0.17up to date
 tracing^0.1.410.1.41up to date
 tracing-subscriber ⚠️^0.30.3.20maybe insecure
 serde^1.0.2191.0.228up to date
 serde_yaml^0.90.9.34+deprecatedup to date
 futures^0.3.310.3.31up to date
 async-trait^0.1.890.1.89up to date
 indicatif^0.18.00.18.3up to date
 rpassword^7.4.07.4.0up to date
 directories^6.0.06.0.0up to date
 dirs^6.06.0.0up to date
 chrono^0.4.410.4.42up to date
 glob^0.3.30.3.3up to date
 whoami^1.6.11.6.1up to date
 owo-colors^4.2.24.2.3up to date
 unicode-width^0.2.00.2.2up to date
 terminal_size^0.4.30.4.3up to date
 once_cell^1.201.21.3up to date
 zeroize^1.81.8.2up to date
 rustyline^17.0.117.0.2up to date
 crossterm^0.290.29.0up to date
 ratatui^0.290.29.0up to date
 regex ⚠️^11.12.2maybe insecure
 lazy_static^1.51.5.0up to date
 ctrlc^3.43.5.1up to date
 signal-hook^0.3.180.3.18up to date
 atty^0.2.140.2.14up to date
 arrayvec^0.7.60.7.6up to date
 smallvec^1.13.21.15.1up to date
 lru^0.160.16.2up to date
 uuid^1.101.18.1up to date
 fastrand^2.22.3.0up to date
 tokio-util^0.70.7.17up to date
 shell-words^1.11.1.0up to date
 security-framework^3.5.13.5.1up to date
 libc^0.20.2.177up to date

Dev dependencies

(5 total, all up-to-date)

CrateRequiredLatestStatus
 tempfile^33.23.0up to date
 mockito^11.7.0up to date
 once_cell^1.21.31.21.3up to date
 tokio-test^0.40.4.4up to date
 serial_test^3.23.2.0up to date

Security Vulnerabilities

regex: Regexes with large repetitions on empty sub-expressions take a very long time to parse

RUSTSEC-2022-0013

The Rust Security Response WG was notified that the regex crate did not properly limit the complexity of the regular expressions (regex) it parses. An attacker could use this security issue to perform a denial of service, by sending a specially crafted regex to a service accepting untrusted regexes. No known vulnerability is present when parsing untrusted input with trusted regexes.

This issue has been assigned CVE-2022-24713. The severity of this vulnerability is "high" when the regex crate is used to parse untrusted regexes. Other uses of the regex crate are not affected by this vulnerability.

Overview

The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API.

Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes.

Affected versions

All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5.

Mitigations

We recommend everyone accepting user-controlled regexes to upgrade immediately to the latest version of the regex crate.

Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability. Because of this, we do not recommend denying known problematic regexes.

Acknowledgements

We want to thank Addison Crump for responsibly disclosing this to us according to the Rust security policy, and for helping review the fix.

We also want to thank Andrew Gallant for developing the fix, and Pietro Albini for coordinating the disclosure and writing this advisory.

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #3368 to escape ANSI control characters from user input.