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 exonum-node

Dependencies

(24 total, 9 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 actix-rt^1.0.02.9.0out of date
 anyhow^1.0.261.0.82up to date
 async-trait^0.1.240.1.80up to date
 bit-vec^0.6.00.6.3up to date
 byteorder^1.2.71.5.0up to date
 bytes^0.5.01.6.0out of date
 chrono ⚠️^0.4.60.4.38maybe insecure
 exonum^1.0.01.0.0up to date
 exonum-api^1.0.01.0.0up to date
 exonum-derive^1.0.01.0.0up to date
 exonum-merkledb^1.0.01.0.0up to date
 exonum-proto^1.0.01.0.0up to date
 exonum_sodiumoxide^0.0.230.0.24out of date
 futures^0.3.40.3.30up to date
 futures-retry^0.5.00.6.0out of date
 log^0.4.60.4.21up to date
 protobuf^2.8.13.4.0out of date
 rand^0.70.8.5out of date
 serde^1.0.1011.0.199up to date
 serde_derive^1.0.1011.0.199up to date
 snow ⚠️^0.6.00.9.6out of date
 thiserror^1.01.0.59up to date
 tokio ⚠️^0.2.131.37.0out of date
 tokio-util^0.3.00.7.10out of date

Dev dependencies

(10 total, 6 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 bincode^1.2.11.3.3up to date
 criterion^0.3.00.5.1out of date
 exonum-rust-runtime^1.0.01.0.0up to date
 hex^0.4.00.4.3up to date
 nix ⚠️^0.17.00.28.0out of date
 pretty_assertions^0.6.11.4.0out of date
 reqwest^0.10.20.12.4out of date
 rusty-fork^0.2.20.3.0out of date
 serde_json^1.0.441.0.116up to date
 toml^0.5.60.8.12out of 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

nix: Out-of-bounds write in nix::unistd::getgrouplist

RUSTSEC-2021-0119

On certain platforms, if a user has more than 16 groups, the nix::unistd::getgrouplist function will call the libc getgrouplist function with a length parameter greater than the size of the buffer it provides, resulting in an out-of-bounds write and memory corruption.

The libc getgrouplist function takes an in/out parameter ngroups specifying the size of the group buffer. When the buffer is too small to hold all of the requested user's group memberships, some libc implementations, including glibc and Solaris libc, will modify ngroups to indicate the actual number of groups for the user, in addition to returning an error. The version of nix::unistd::getgrouplist in nix 0.16.0 and up will resize the buffer to twice its size, but will not read or modify the ngroups variable. Thus, if the user has more than twice as many groups as the initial buffer size of 8, the next call to getgrouplist will then write past the end of the buffer.

The issue would require editing /etc/groups to exploit, which is usually only editable by the root user.

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.

snow: Unauthenticated Nonce Increment in snow

RUSTSEC-2024-0011

There was a logic bug where unauthenticated payloads could still cause a nonce increment in snow's internal state. For an attacker with privileges to inject packets into the channel over which the Noise session operates, this could allow a denial-of-service attack which could prevent message delivery by sending garbage data.

Note that this only affects those who are using the stateful TransportState, not those using StatelessTransportState.

This has been patched in version 0.9.5, and all users are recommended to update.