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 solana

Dependencies

(31 total, 16 outdated, 4 possibly insecure)

CrateRequiredLatestStatus
 atty^0.20.2.14up to date
 bincode^1.0.01.3.3up to date
 bs58^0.2.00.5.1out of date
 byteorder^1.2.11.5.0up to date
 chrono ⚠️^0.4.00.4.38maybe insecure
 clap^2.314.5.4out of date
 dirs^1.0.25.0.1out of date
 env_logger^0.5.120.11.3out of date
 futures^0.1.210.3.30out of date
 generic-array ⚠️^0.11.11.0.0out of date
 getopts^0.20.2.21up to date
 influx_db_client^0.3.40.5.1out of date
 itertools^0.7.80.12.1out of date
 libc^0.2.10.2.153up to date
 log^0.4.20.4.21up to date
 matches^0.1.60.1.10up to date
 pnet_datalink^0.21.00.34.0out of date
 rand^0.5.10.8.5out of date
 rayon^1.0.01.10.0up to date
 reqwest^0.8.60.12.4out of date
 ring^0.13.20.17.8out of date
 serde^1.0.271.0.198up to date
 serde_derive^1.0.271.0.198up to date
 serde_json^1.0.101.0.116up to date
 sha2^0.7.00.10.8out of date
 sys-info ⚠️^0.5.60.9.1out of date
 tokio ⚠️^0.11.37.0out of date
 tokio-codec^0.10.1.2up to date
 tokio-core^0.1.170.1.18up to date
 tokio-io^0.10.1.13up to date
 untrusted^0.6.20.9.0out of date

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 criterion^0.20.5.1out of date

Security Vulnerabilities

sys-info: Double free when calling `sys_info::disk_info` from multiple threads

RUSTSEC-2020-0100

Affected versions of sys-info use a static, global, list to store temporary disk information while running. The function that cleans up this list, DFCleanup, assumes a single threaded environment and will try to free the same memory twice in a multithreaded environment.

This results in consistent double-frees and segfaults when calling sys_info::disk_info from multiple threads at once.

The issue was fixed by moving the global variable into a local scope.

Safer Alternatives:

generic-array: arr! macro erases lifetimes

RUSTSEC-2020-0146

Affected versions of this crate allowed unsoundly extending lifetimes using arr! macro. This may result in a variety of memory corruption scenarios, most likely use-after-free.

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: Data race when sending and receiving after closing a `oneshot` channel

RUSTSEC-2021-0124

If a tokio::sync::oneshot channel is closed (via the oneshot::Receiver::close method), a data race may occur if the oneshot::Sender::send method is called while the corresponding oneshot::Receiver is awaited or calling try_recv.

When these methods are called concurrently on a closed channel, the two halves of the channel can concurrently access a shared memory location, resulting in a data race. This has been observed to cause memory corruption.

Note that the race only occurs when both halves of the channel are used after the Receiver half has called close. Code where close is not used, or where the Receiver is not awaited and try_recv is not called after calling close, is not affected.

See tokio#4225 for more details.