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 openraft

Dependencies

(24 total, 1 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 anyerror^0.1.100.1.13up to date
 anyhow^1.0.631.0.103up to date
 backoff-series^0.1.10.1.1up to date
 base2histogram^0.2.30.2.3up to date
 byte-unit^5.1.45.2.5up to date
 chrono ⚠️^0.40.4.45maybe insecure
 clap^4.1.114.6.1up to date
 derive_more^2.1.12.1.1up to date
 display-more^0.2.60.2.6up to date
 futures-util^0.30.3.32up to date
 itertools^0.150.15.0up to date
 maplit^1.0.21.0.2up to date
 openraft-macros^0.10.0-alpha.290.9.24up to date
 openraft-rt^0.10.0-alpha.29N/Aup to date
 openraft-rt-tokio^0.10.0-alpha.29N/Aup to date
 peel-off^0.1.00.1.1up to date
 rand^0.100.10.2up to date
 serde^1.0.1141.0.228up to date
 serde_json^1.0.571.0.150up to date
 smallvec ⚠️^11.15.2maybe insecure
 tabled^0.20.00.21.0out of date
 thiserror^2.0.182.0.18up to date
 tracing^0.1.400.1.44up to date
 validit^0.2.50.2.6up to date

Dev dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 anyhow^1.0.631.0.103up to date
 openraft-rt-tokio^0.10.0-alpha.29N/Aup to date
 pretty_assertions^1.0.01.4.1up to date
 serde_json^1.0.571.0.150up to date

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

smallvec: Buffer overflow in SmallVec::insert_many

RUSTSEC-2021-0003

A bug in the SmallVec::insert_many method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap.

This bug was only triggered if the iterator passed to insert_many yielded more items than the lower bound returned from its size_hint method.

The flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted. The fix also simplified the implementation of insert_many to use less unsafe code, so it is easier to verify its correctness.

Thank you to Yechan Bae (@Qwaz) and the Rust group at Georgia Tech’s SSLab for finding and reporting this bug.