This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate exonum-node

Dependencies

(24 total, 11 outdated, 3 insecure)

CrateRequiredLatestStatus
 actix-rt^1.0.02.15.0out of date
 anyhow^1.0.261.0.104up to date
 async-trait^0.1.240.1.92up to date
 bit-vec^0.6.00.10.1out of date
 byteorder^1.2.71.5.0up to date
 bytes^0.5.01.12.1out of date
 chrono^0.4.60.4.45up to date
 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.34up to date
 futures-retry^0.5.00.6.0out of date
 log^0.4.60.4.34up to date
 protobuf ⚠️^2.8.13.7.2insecure
 rand^0.70.10.3out of date
 serde^1.0.1011.0.229up to date
 serde_derive^1.0.1011.0.229up to date
 snow ⚠️^0.6.00.10.0insecure
 thiserror^1.02.0.21out of date
 tokio ⚠️^0.2.131.53.3insecure
 tokio-util^0.3.00.7.20out of date

Dev dependencies

(10 total, 7 outdated, 1 insecure)

CrateRequiredLatestStatus
 bincode^1.2.13.0.0out of date
 criterion^0.3.00.8.2out of date
 exonum-rust-runtime^1.0.01.0.0up to date
 hex^0.4.00.4.3up to date
 nix ⚠️^0.17.00.31.3insecure
 pretty_assertions^0.6.11.4.1out of date
 reqwest^0.10.20.13.5out of date
 rusty-fork^0.2.20.3.1out of date
 serde_json^1.0.441.0.154up to date
 toml^0.5.61.1.8+spec-1.1.0out of date

Security Vulnerabilities

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.

protobuf: Crash due to uncontrolled recursion in protobuf crate

RUSTSEC-2024-0437

Affected version of this crate did not properly parse unknown fields when parsing a user-supplied input.

This allows an attacker to cause a stack overflow when parsing the mssage on untrusted data.