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 matrix-sdk

Dependencies

(34 total, 13 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.571.0.98up to date
 anymap2^0.13.00.13.0up to date
 async-once-cell^0.3.10.5.4out of date
 async-stream^0.3.30.3.6up to date
 async-trait^0.1.530.1.88up to date
 backoff^0.4.00.4.0up to date
 bytes^1.1.01.10.1up to date
 dashmap^5.2.06.1.0out of date
 derive_builder^0.11.20.20.2out of date
 event-listener^2.5.25.4.0out of date
 eyre ⚠️^0.6.80.6.12maybe insecure
 futures-core^0.3.210.3.31up to date
 futures-signals^0.3.300.3.34up to date
 futures-util^0.3.210.3.31up to date
 http^0.2.61.3.1out of date
 image^0.24.20.25.6out of date
 matrix-sdk-base^0.6.10.11.0out of date
 matrix-sdk-common^0.6.00.11.0out of date
 matrix-sdk-indexeddb^0.2.00.11.0out of date
 matrix-sdk-sled^0.2.00.2.0up to date
 mime^0.3.160.3.17up to date
 rand^0.8.50.9.1out of date
 reqwest^0.11.100.12.15out of date
 ruma^0.7.00.12.2out of date
 serde^1.0.1361.0.219up to date
 serde_json^1.0.791.0.140up to date
 thiserror^1.0.302.0.12out of date
 tokio ⚠️^1.17.01.45.0maybe insecure
 tokio-stream^0.1.80.1.17up to date
 tracing^0.1.340.1.41up to date
 url^2.2.22.5.4up to date
 warp ⚠️^0.3.20.3.7maybe insecure
 wasm-timer^0.2.50.2.5up to date
 zeroize^1.3.01.8.1up to date

Dev dependencies

(14 total, 5 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.571.0.98up to date
 ctor^0.1.230.4.2out of date
 dirs^4.0.06.0.0out of date
 futures^0.3.210.3.31up to date
 getrandom^0.2.60.3.2out of date
 matches^0.1.90.1.10up to date
 matrix-sdk-test^0.6.00.11.0out of date
 once_cell^1.10.01.21.3up to date
 serde_json^1.0.791.0.140up to date
 tempfile^3.3.03.19.1up to date
 tokio ⚠️^1.17.01.45.0maybe insecure
 tracing-subscriber^0.3.110.3.19up to date
 wasm-bindgen-test^0.3.300.3.50up to date
 wiremock^0.5.130.6.3out of date

Security Vulnerabilities

warp: Improper validation of Windows paths could lead to directory traversal attack

RUSTSEC-2022-0082

Path resolution in warp::filters::fs::dir didn't correctly validate Windows paths meaning paths like /foo/bar/c:/windows/web/screen/img101.png would be allowed and respond with the contents of c:/windows/web/screen/img101.png. Thus users could potentially read files anywhere on the filesystem.

This only impacts Windows. Linux and other unix likes are not impacted by this.

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

eyre: Parts of Report are dropped as the wrong type during downcast

RUSTSEC-2024-0021

In affected versions, after a Report is constructed using wrap_err or wrap_err_with to attach a message of type D onto an error of type E, then using downcast to recover ownership of either the value of type D or the value of type E, one of two things can go wrong:

  • If downcasting to E, there remains a value of type D to be dropped. It is incorrectly "dropped" by running E's drop behavior, rather than D's. For example if D is &str and E is std::io::Error, there would be a call of std::io::Error::drop in which the reference received by the Drop impl does not refer to a valid value of type std::io::Error, but instead to &str.

  • If downcasting to D, there remains a value of type E to be dropped. When D and E do not happen to be the same size, E's drop behavior is incorrectly executed in the wrong location. The reference received by the Drop impl may point left or right of the real E value that is meant to be getting dropped.

In both cases, when the Report contains an error E that has nontrivial drop behavior, the most likely outcome is memory corruption.

When the Report contains an error E that has trivial drop behavior (for example a Utf8Error) but where D has nontrivial drop behavior (such as String), the most likely outcome is that downcasting to E would leak D.