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 doh-client

Dependencies

(23 total, 15 outdated, 4 possibly insecure)

CrateRequiredLatestStatus
 libc~0.2.1370.2.164up to date
 base64~0.13.10.22.1out of date
 log~0.4.170.4.22up to date
 env_logger~0.9.10.11.5out of date
 tokio-rustls~0.23.40.26.0out of date
 futures~0.3.250.3.31up to date
 h2 ⚠️~0.3.150.4.7out of date
 http~0.2.81.1.0out of date
 rustls ⚠️~0.20.70.23.18out of date
 rustls-pemfile~1.0.12.2.0out of date
 webpki ⚠️~0.22.00.22.4maybe insecure
 bytes~1.2.11.8.0out of date
 lru~0.8.10.12.5out of date
 dns-message-parser~0.7.00.7.0up to date
 lazy_static~1.4.01.5.0out of date
 thiserror~1.0.372.0.3out of date
 clap~3.2.234.5.21out of date
 async-http-proxy~1.2.51.2.5up to date
 tokio-socks~0.5.10.5.2up to date
 tokio ⚠️~1.20.21.41.1out of date
 rustls-native-certs~0.6.20.8.1out of date
 windows-service~0.5.00.7.0out of date
 winlog~0.2.60.2.6up to date

Security Vulnerabilities

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);

webpki: webpki: CPU denial of service in certificate path building

RUSTSEC-2023-0052

When this crate is given a pathological certificate chain to validate, it will spend CPU time exponential with the number of candidate certificates at each step of path building.

Both TLS clients and TLS servers that accept client certificate are affected.

This was previously reported in https://github.com/briansmith/webpki/issues/69 and re-reported recently by Luke Malinowski.

webpki 0.22.1 included a partial fix and webpki 0.22.2 added further fixes.

h2: Degradation of service in h2 servers with CONTINUATION Flood

RUSTSEC-2024-0332

An attacker can send a flood of CONTINUATION frames, causing h2 to process them indefinitely. This results in an increase in CPU usage.

Tokio task budget helps prevent this from a complete denial-of-service, as the server can still respond to legitimate requests, albeit with increased latency.

More details at "https://seanmonstar.com/blog/hyper-http2-continuation-flood/.

Patches available for 0.4.x and 0.3.x versions.

rustls: `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input

RUSTSEC-2024-0336

If a close_notify alert is received during a handshake, complete_io does not terminate.

Callers which do not call complete_io are not affected.

rustls-tokio and rustls-ffi do not call complete_io and are not affected.

rustls::Stream and rustls::StreamOwned types use complete_io and are affected.