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 mongodb

Dependencies

(54 total, 23 outdated, 4 possibly insecure)

CrateRequiredLatestStatus
 async-executor=1.5.11.13.3out of date
 async-std^1.9.01.13.2up to date
 async-std-resolver^0.21.10.24.4out of date
 async-trait^0.1.420.1.89up to date
 base64^0.13.00.22.1out of date
 bitflags^1.1.02.10.0out of date
 bson^2.8.03.1.0out of date
 chrono ⚠️^0.4.70.4.42maybe insecure
 derivative^2.1.12.2.0up to date
 derive_more^0.99.172.1.0out of date
 flate2^1.01.1.5up to date
 futures-core^0.3.140.3.31up to date
 futures-executor^0.3.140.3.31up to date
 futures-io^0.3.210.3.31up to date
 futures-util^0.3.140.3.31up to date
 hex^0.4.00.4.3up to date
 hmac^0.12.10.12.1up to date
 lazy_static^1.4.01.5.0up to date
 log^0.4.170.4.29up to date
 md-5^0.10.10.10.6up to date
 mongocrypt^0.1.20.3.2out of date
 num_cpus^1.13.11.17.0up to date
 openssl ⚠️^0.10.380.10.75maybe insecure
 openssl-probe^0.1.50.1.6up to date
 pbkdf2^0.11.00.12.2out of date
 percent-encoding^2.0.02.3.2up to date
 rand^0.8.30.9.2out of date
 rayon^1.5.31.11.0up to date
 reqwest^0.11.20.12.25out of date
 rustc_version_runtime^0.2.10.3.0out of date
 rustls ⚠️^0.21.60.23.35out of date
 rustls-pemfile^1.0.12.2.0out of date
 serde^1.0.1251.0.228up to date
 serde_bytes^0.11.50.11.19up to date
 serde_with^1.3.13.16.1out of date
 sha-1^0.10.00.10.1up to date
 sha2^0.10.20.10.9up to date
 snap^1.0.51.1.1up to date
 socket2^0.4.00.6.1out of date
 stringprep^0.1.20.1.5up to date
 strsim^0.10.00.11.1out of date
 take_mut^0.2.20.2.2up to date
 thiserror^1.0.242.0.17out of date
 tokio ⚠️^1.17.01.48.0maybe insecure
 tokio-openssl^0.6.30.6.5up to date
 tokio-rustls^0.24.10.26.4out of date
 tokio-util^0.7.00.7.17up to date
 tracing^0.1.360.1.43up to date
 trust-dns-proto^0.21.20.23.2out of date
 trust-dns-resolver^0.21.20.23.2out of date
 typed-builder^0.10.00.23.2out of date
 uuid^1.1.21.19.0up to date
 webpki-roots^0.25.21.0.4out of date
 zstd^0.11.20.13.3out of date

Dev dependencies

(18 total, 2 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.01.0.100up to date
 approx^0.5.10.5.1up to date
 backtrace^0.3.680.3.76up to date
 ctrlc^3.2.23.5.1up to date
 function_name^0.2.10.3.0out of date
 futures^0.30.3.31up to date
 hex^0.40.4.3up to date
 home^0.50.5.12up to date
 lambda_runtime^0.6.01.0.1out of date
 pretty_assertions^1.3.01.4.1up to date
 regex^1.6.01.12.2up to date
 semver^1.0.01.0.27up to date
 serde>=0.0.01.0.228up to date
 serde-hex^0.1.00.1.0up to date
 serde_json^1.0.641.0.145up to date
 time^0.3.90.3.44up to date
 tokio ⚠️>=0.0.01.48.0maybe insecure
 tracing-subscriber ⚠️^0.3.160.3.22maybe insecure

Security Vulnerabilities

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

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

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.

openssl: Use-After-Free in `Md::fetch` and `Cipher::fetch`

RUSTSEC-2025-0022

When a Some(...) value was passed to the properties argument of either of these functions, a use-after-free would result.

In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to CString::drop's behavior).

The maintainers thank quitbug for reporting this vulnerability to us.

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.