Affected versions of this crate called Vec::reserve() on user-supplied input.
This allows an attacker to cause an Out of Memory condition while calling the vulnerable method on untrusted data.
susyp2p / rust-susyp2p
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.
susyp2p
(8 total, 4 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
bytes | ^0.4 | 1.6.0 | out of date |
futures | ^0.1 | 0.3.30 | out of date |
lazy_static | ^1.2 | 1.4.0 | up to date |
parking_lot | ^0.7 | 0.12.2 | out of date |
smallvec ⚠️ | ^0.6 | 1.13.2 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-executor | ^0.1 | 0.1.10 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
(5 total, 3 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
env_logger | ^0.6.0 | 0.11.3 | out of date |
rand | ^0.6 | 0.8.5 | out of date |
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
tokio-stdin-stdout | ^0.1 | 0.1.5 | up to date |
void | ^1.0 | 1.0.2 | up to date |
susy-multiaddr
(7 total, 3 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
arrayref | ^0.3 | 0.3.7 | up to date |
bs58 | ^0.2.0 | 0.5.1 | out of date |
byteorder | ^1.3.1 | 1.5.0 | up to date |
bytes | ^0.4.12 | 1.6.0 | out of date |
data-encoding | ^2.1 | 2.5.0 | up to date |
serde | ^1.0.70 | 1.0.198 | up to date |
unsigned-varint | ^0.2 | 0.8.0 | out of date |
(6 total, 3 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
bincode | ^1 | 1.3.3 | up to date |
bs58 | ^0.2.0 | 0.5.1 | out of date |
data-encoding | ^2 | 2.5.0 | up to date |
quickcheck | ^0.8.1 | 1.0.3 | out of date |
rand | ^0.6.5 | 0.8.5 | out of date |
serde_json | ^1.0 | 1.0.116 | up to date |
susy-multihash
(6 total, 6 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
blake2 | ^0.8 | 0.10.6 | out of date |
rand | ^0.6 | 0.8.5 | out of date |
sha-1 | ^0.8 | 0.10.1 | out of date |
sha2 | ^0.8 | 0.10.8 | out of date |
sha3 | ^0.8 | 0.10.8 | out of date |
unsigned-varint | ^0.2 | 0.8.0 | out of date |
susyp2p-mplex
(8 total, 4 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
bytes | ^0.4.5 | 1.6.0 | out of date |
fnv | ^1.0 | 1.0.7 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4 | 0.4.21 | up to date |
parking_lot | ^0.7 | 0.12.2 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
unsigned-varint | ^0.2.1 | 0.8.0 | out of date |
(1 total, 1 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
susyp2p-identify
(12 total, 6 outdated, 2 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
bytes | ^0.4 | 1.6.0 | out of date |
fnv | ^1 | 1.0.7 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4.1 | 0.4.21 | up to date |
parking_lot | ^0.7 | 0.12.2 | out of date |
protobuf ⚠️ | ^2.3 | 3.4.0 | out of date |
smallvec ⚠️ | ^0.6 | 1.13.2 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-io | ^0.1.0 | 0.1.13 | up to date |
tokio-timer | ^0.2.6 | 0.2.13 | up to date |
unsigned-varint | ^0.2.1 | 0.8.0 | out of date |
void | ^1.0 | 1.0.2 | up to date |
(2 total, 2 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
rand | ^0.6 | 0.8.5 | out of date |
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
susyp2p-kad
(17 total, 9 outdated, 2 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
arrayref | ^0.3 | 0.3.7 | up to date |
arrayvec | ^0.4.7 | 0.7.4 | out of date |
bs58 | ^0.2.0 | 0.5.1 | out of date |
bigint | ^4.2 | 4.4.3 | up to date |
bytes | ^0.4 | 1.6.0 | out of date |
fnv | ^1.0 | 1.0.7 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4 | 0.4.21 | up to date |
parking_lot | ^0.7 | 0.12.2 | out of date |
protobuf ⚠️ | ^2.3 | 3.4.0 | out of date |
rand | ^0.6.0 | 0.8.5 | out of date |
smallvec ⚠️ | ^0.6 | 1.13.2 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
tokio-timer | ^0.2.6 | 0.2.13 | up to date |
unsigned-varint | ^0.2.1 | 0.8.0 | out of date |
void | ^1.0 | 1.0.2 | up to date |
(1 total, 1 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
susyp2p-floodsub
(11 total, 8 outdated, 2 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
bs58 | ^0.2.0 | 0.5.1 | out of date |
bytes | ^0.4 | 1.6.0 | out of date |
cuckoofilter | ^0.3.2 | 0.5.0 | out of date |
fnv | ^1.0 | 1.0.7 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
protobuf ⚠️ | ^2.3 | 3.4.0 | out of date |
rand | ^0.6 | 0.8.5 | out of date |
smallvec ⚠️ | ^0.6.5 | 1.13.2 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
unsigned-varint | ^0.2.1 | 0.8.0 | out of date |
susyp2p-ping
(10 total, 5 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
arrayvec | ^0.4 | 0.7.4 | out of date |
bytes | ^0.4 | 1.6.0 | out of date |
log | ^0.4.1 | 0.4.21 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
parking_lot | ^0.7 | 0.12.2 | out of date |
rand | ^0.6 | 0.8.5 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
tokio-timer | ^0.2.6 | 0.2.13 | up to date |
void | ^1.0 | 1.0.2 | up to date |
(3 total, 2 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
quickcheck | ^0.8 | 1.0.3 | out of date |
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
tokio-tcp | ^0.1 | 0.1.4 | up to date |
susyp2p-plaintext
(2 total, 1 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
futures | ^0.1 | 0.3.30 | out of date |
void | ^1 | 1.0.2 | up to date |
susyp2p-ratelimit
(5 total, 1 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
aio-limited | ^0.1 | 0.1.1 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4 | 0.4.21 | up to date |
tokio-executor | ^0.1 | 0.1.10 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
susyp2p-core
(22 total, 14 outdated, 4 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
asn1_der ⚠️ | ^0.6.1 | 0.7.6 | out of date |
bs58 | ^0.2.0 | 0.5.1 | out of date |
bytes | ^0.4 | 1.6.0 | out of date |
ed25519-dalek ⚠️ | ^1.0.0-pre.1 | 2.1.1 | out of date |
failure | ^0.1 | 0.1.8 | up to date |
fnv | ^1.0 | 1.0.7 | up to date |
lazy_static | ^1.2 | 1.4.0 | up to date |
log | ^0.4 | 0.4.21 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
parking_lot | ^0.7 | 0.12.2 | out of date |
protobuf ⚠️ | ^2.3 | 3.4.0 | out of date |
quick-error | ^1.2 | 2.0.1 | out of date |
rand | ^0.6 | 0.8.5 | out of date |
secp256k1 | ^0.12 | 0.29.0 | out of date |
sha2 | ^0.8.0 | 0.10.8 | out of date |
smallvec ⚠️ | ^0.6 | 1.13.2 | out of date |
tokio-executor | ^0.1.4 | 0.1.10 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
tokio-timer | ^0.2 | 0.2.13 | up to date |
unsigned-varint | ^0.2 | 0.8.0 | out of date |
void | ^1 | 1.0.2 | up to date |
zeroize | ^0.5 | 1.7.0 | out of date |
(8 total, 4 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
env_logger | ^0.6 | 0.11.3 | out of date |
rand | ^0.6 | 0.8.5 | out of date |
quickcheck | ^0.8 | 1.0.3 | out of date |
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-timer | ^0.2 | 0.2.13 | up to date |
assert_matches | ^1.3 | 1.5.0 | up to date |
tokio-mock-task | ^0.1 | 0.1.1 | up to date |
susyp2p-core-derive
(2 total, 2 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
syn | ^0.15.22 | 2.0.60 | out of date |
quote | ^0.6 | 1.0.36 | out of date |
(1 total, all up-to-date)
Crate | Required | Latest | Status |
---|---|---|---|
void | ^1.0 | 1.0.2 | up to date |
susyp2p-secio
(15 total, 12 outdated, 2 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
asn1_der ⚠️ | ^0.6.1 | 0.7.6 | out of date |
bytes | ^0.4 | 1.6.0 | out of date |
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4.6 | 0.4.21 | up to date |
protobuf ⚠️ | ^2.3 | 3.4.0 | out of date |
rand | ^0.6.5 | 0.8.5 | out of date |
secp256k1 | ^0.12 | 0.29.0 | out of date |
aes-ctr | ^0.3 | 0.99.99 | out of date |
aesni | ^0.6 | 0.99.99 | out of date |
twofish | ^0.2.0 | 0.7.1 | out of date |
ctr | ^0.3 | 0.9.2 | out of date |
lazy_static | ^1.2.0 | 1.4.0 | up to date |
tokio-io | ^0.1.0 | 0.1.13 | up to date |
sha2 | ^0.8.0 | 0.10.8 | out of date |
hmac | ^0.7.0 | 0.12.1 | out of date |
(3 total, 2 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
criterion | ^0.2 | 0.5.1 | out of date |
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
tokio-tcp | ^0.1 | 0.1.4 | up to date |
susyp2p-uds
No external dependencies! 🙌
susyp2p-websocket
(3 total, 1 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4.1 | 0.4.21 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
susyp2p-yamux
(4 total, 2 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4 | 0.4.21 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
yamux | ^0.2.0 | 0.13.1 | out of date |
susyp2p-mdns
(12 total, 3 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
data-encoding | ^2.0 | 2.5.0 | up to date |
dns-parser | ^0.8 | 0.8.0 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4 | 0.4.21 | up to date |
net2 | ^0.2 | 0.2.39 | up to date |
rand | ^0.6 | 0.8.5 | out of date |
smallvec ⚠️ | ^0.6 | 1.13.2 | out of date |
tokio-io | ^0.1 | 0.1.13 | up to date |
tokio-reactor | ^0.1 | 0.1.12 | up to date |
tokio-timer | ^0.2 | 0.2.13 | up to date |
tokio-udp | ^0.1 | 0.1.6 | up to date |
void | ^1.0 | 1.0.2 | up to date |
(1 total, 1 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
multistream-select
(7 total, 4 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
bytes | ^0.4 | 1.6.0 | out of date |
futures | ^0.1 | 0.3.30 | out of date |
log | ^0.4 | 0.4.21 | up to date |
smallvec ⚠️ | ^0.6 | 1.13.2 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
unsigned-varint | ^0.2.1 | 0.8.0 | out of date |
(2 total, 1 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
tokio-tcp | ^0.1 | 0.1.4 | up to date |
peer-id-generator
(2 total, 1 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
num_cpus | ^1.8 | 1.16.0 | up to date |
rand | ^0.6 | 0.8.5 | out of date |
rw-stream-sink
(3 total, 2 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
bytes | ^0.4 | 1.6.0 | out of date |
futures | ^0.1 | 0.3.30 | out of date |
tokio-io | ^0.1 | 0.1.13 | up to date |
susyp2p-noise
(10 total, 7 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
curve25519-dalek | ^1 | 4.1.2 | out of date |
futures | ^0.1 | 0.3.30 | out of date |
lazy_static | ^1.2 | 1.4.0 | up to date |
log | ^0.4 | 0.4.21 | up to date |
rand | ^0.6.5 | 0.8.5 | out of date |
ring | ^0.14 | 0.17.8 | out of date |
snow ⚠️ | ^0.5.1 | 0.9.6 | out of date |
tokio-io | ^0.1 | 0.1.13 | up to date |
x25519-dalek | ^0.5 | 2.0.1 | out of date |
zeroize | ^0.5 | 1.7.0 | out of date |
(4 total, 3 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
env_logger | ^0.6 | 0.11.3 | out of date |
quickcheck | ^0.8 | 1.0.3 | out of date |
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
sodiumoxide | ^0.2 | 0.2.7 | up to date |
susyp2p-observed-address
(5 total, 3 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
bytes | ^0.4 | 1.6.0 | out of date |
futures | ^0.1 | 0.3.30 | out of date |
tokio-codec | ^0.1 | 0.1.2 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
unsigned-varint | ^0.2.1 | 0.8.0 | out of date |
(1 total, 1 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
susyp2p-dns
(4 total, 1 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
log | ^0.4.1 | 0.4.21 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
tokio-dns-unofficial | ^0.4 | 0.4.0 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
(1 total, 1 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
susyp2p-tcp
(6 total, 1 outdated)
Crate | Required | Latest | Status |
---|---|---|---|
get_if_addrs | ^0.5.3 | 0.5.3 | up to date |
log | ^0.4.1 | 0.4.21 | up to date |
futures | ^0.1 | 0.3.30 | out of date |
tk-listen | ^0.2.0 | 0.2.1 | up to date |
tokio-io | ^0.1 | 0.1.13 | up to date |
tokio-tcp | ^0.1 | 0.1.4 | up to date |
(1 total, 1 outdated, 1 possibly insecure)
Crate | Required | Latest | Status |
---|---|---|---|
tokio ⚠️ | ^0.1 | 1.37.0 | out of date |
protobuf
: Out of Memory in stream::read_raw_bytes_into()Affected versions of this crate called Vec::reserve() on user-supplied input.
This allows an attacker to cause an Out of Memory condition while calling the vulnerable method on untrusted data.
asn1_der
: Processing of maliciously crafted length fields causes memory allocation SIGABRTsAffected versions of this crate tried to preallocate a vector for an arbitrary amount of bytes announced by the ASN.1-DER length field without further checks.
This allows an attacker to trigger a SIGABRT by creating length fields that announce more bytes than the allocator can provide.
The flaw was corrected by not preallocating memory.
smallvec
: Buffer overflow in SmallVec::insert_manyA 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.
tokio
: Data race when sending and receiving after closing a `oneshot` channelIf 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 await
ed 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 await
ed and try_recv
is not called after calling close
,
is not affected.
See tokio#4225 for more details.
ed25519-dalek
: Double Public Key Signing Function Oracle Attack on `ed25519-dalek`Versions of ed25519-dalek
prior to v2.0 model private and public keys as
separate types which can be assembled into a Keypair
, and also provide APIs
for serializing and deserializing 64-byte private/public keypairs.
Such APIs and serializations are inherently unsafe as the public key is one of
the inputs used in the deterministic computation of the S
part of the signature,
but not in the R
value. An adversary could somehow use the signing function as
an oracle that allows arbitrary public keys as input can obtain two signatures
for the same message sharing the same R
and only differ on the S
part.
Unfortunately, when this happens, one can easily extract the private key.
Revised public APIs in v2.0 of ed25519-dalek
do NOT allow a decoupled
private/public keypair as signing input, except as part of specially labeled
"hazmat" APIs which are clearly labeled as being dangerous if misused.
snow
: Unauthenticated Nonce Increment in snowThere 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.