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 config

Dependencies

(12 total, 6 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 async-trait^0.1.20.1.92up to date
 indexmap^1.7.02.14.2out of date
 json5^0.41.3.1out of date
 lazy_static^1.41.5.0up to date
 nom^78.0.0out of date
 pathdiff^0.20.2.3up to date
 ron^0.70.12.2out of date
 rust-ini^0.180.21.3out of date
 serde^1.0.991.0.229up to date
 serde_json^1.0.01.0.151up to date
 toml^0.51.1.6+spec-1.1.0out of date
 yaml-rust ⚠️^0.40.4.5maybe insecure

Dev dependencies

(10 total, 5 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 chrono^0.4.230.4.45up to date
 float-cmp^0.90.10.0out of date
 futures^0.30.3.34up to date
 glob^0.30.3.4up to date
 notify^4.0.08.2.0out of date
 reqwest^0.110.13.5out of date
 serde_derive^1.0.991.0.229up to date
 temp-env^0.2.00.3.6out of date
 tokio ⚠️^1.131.53.1maybe insecure
 warp=0.3.50.4.3out of date

Security Vulnerabilities

yaml-rust: Uncontrolled recursion leads to abort in deserialization

RUSTSEC-2018-0006

Affected versions of this crate did not prevent deep recursion while deserializing data structures.

This allows an attacker to make a YAML file with deeply nested structures that causes an abort while deserializing it.

The flaw was corrected by checking the recursion depth.

Note: clap 2.33 is not affected by this because it uses yaml-rust in a way that doesn't trigger the vulnerability. More specifically:

  1. The input to the YAML parser is always trusted - is included at compile time via include_str!.

  2. The nesting level is never deep enough to trigger the overflow in practice (at most 5).

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);