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 susyp2p

Dependencies

(9 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 bytes^0.41.10.1out of date
 futures^0.10.3.31out of date
 lazy_static^1.21.5.0up to date
 parking_lot^0.70.12.3out of date
 smallvec ⚠️^0.61.15.0out of date
 tokio-codec^0.10.1.2up to date
 tokio-executor^0.10.1.10up to date
 tokio-io^0.10.1.13up to date
 stdweb^0.40.4.20up to date

Dev dependencies

(5 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 env_logger^0.6.00.11.8out of date
 rand^0.60.9.1out of date
 tokio ⚠️^0.11.45.0out of date
 tokio-stdin-stdout^0.10.1.5up to date
 void^1.01.0.2up to date

Crate susy-multiaddr

Dependencies

(7 total, 3 outdated)

CrateRequiredLatestStatus
 arrayref^0.30.3.9up to date
 bs58^0.2.00.5.1out of date
 byteorder^1.3.11.5.0up to date
 bytes^0.4.121.10.1out of date
 data-encoding^2.12.9.0up to date
 serde^1.0.701.0.219up to date
 unsigned-varint^0.20.8.0out of date

Dev dependencies

(6 total, 4 outdated)

CrateRequiredLatestStatus
 bincode^12.0.1out of date
 bs58^0.2.00.5.1out of date
 data-encoding^22.9.0up to date
 quickcheck^0.8.11.0.3out of date
 rand^0.6.50.9.1out of date
 serde_json^1.01.0.140up to date

Crate susy-multihash

Dependencies

(6 total, 6 outdated)

CrateRequiredLatestStatus
 blake2^0.80.10.6out of date
 rand^0.60.9.1out of date
 sha-1^0.80.10.1out of date
 sha2^0.80.10.9out of date
 sha3^0.80.10.8out of date
 unsigned-varint^0.20.8.0out of date

Crate susyp2p-mplex

Dependencies

(8 total, 4 outdated)

CrateRequiredLatestStatus
 bytes^0.4.51.10.1out of date
 fnv^1.01.0.7up to date
 futures^0.10.3.31out of date
 log^0.40.4.27up to date
 parking_lot^0.70.12.3out of date
 tokio-codec^0.10.1.2up to date
 tokio-io^0.10.1.13up to date
 unsigned-varint^0.2.10.8.0out of date

Dev dependencies

(1 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date

Crate susyp2p-identify

Dependencies

(12 total, 6 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 bytes^0.41.10.1out of date
 fnv^11.0.7up to date
 futures^0.10.3.31out of date
 log^0.4.10.4.27up to date
 parking_lot^0.70.12.3out of date
 protobuf ⚠️^2.33.7.2out of date
 smallvec ⚠️^0.61.15.0out of date
 tokio-codec^0.10.1.2up to date
 tokio-io^0.1.00.1.13up to date
 tokio-timer^0.2.60.2.13up to date
 unsigned-varint^0.2.10.8.0out of date
 void^1.01.0.2up to date

Dev dependencies

(2 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 rand^0.60.9.1out of date
 tokio ⚠️^0.11.45.0out of date

Crate susyp2p-kad

Dependencies

(17 total, 9 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 arrayref^0.30.3.9up to date
 arrayvec^0.4.70.7.6out of date
 bs58^0.2.00.5.1out of date
 bigint^4.24.4.3up to date
 bytes^0.41.10.1out of date
 fnv^1.01.0.7up to date
 futures^0.10.3.31out of date
 log^0.40.4.27up to date
 parking_lot^0.70.12.3out of date
 protobuf ⚠️^2.33.7.2out of date
 rand^0.6.00.9.1out of date
 smallvec ⚠️^0.61.15.0out of date
 tokio-codec^0.10.1.2up to date
 tokio-io^0.10.1.13up to date
 tokio-timer^0.2.60.2.13up to date
 unsigned-varint^0.2.10.8.0out of date
 void^1.01.0.2up to date

Dev dependencies

(1 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date

Crate susyp2p-floodsub

Dependencies

(11 total, 8 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 bs58^0.2.00.5.1out of date
 bytes^0.41.10.1out of date
 cuckoofilter^0.3.20.5.0out of date
 fnv^1.01.0.7up to date
 futures^0.10.3.31out of date
 protobuf ⚠️^2.33.7.2out of date
 rand^0.60.9.1out of date
 smallvec ⚠️^0.6.51.15.0out of date
 tokio-codec^0.10.1.2up to date
 tokio-io^0.10.1.13up to date
 unsigned-varint^0.2.10.8.0out of date

Crate susyp2p-ping

Dependencies

(10 total, 5 outdated)

CrateRequiredLatestStatus
 arrayvec^0.40.7.6out of date
 bytes^0.41.10.1out of date
 log^0.4.10.4.27up to date
 futures^0.10.3.31out of date
 parking_lot^0.70.12.3out of date
 rand^0.60.9.1out of date
 tokio-codec^0.10.1.2up to date
 tokio-io^0.10.1.13up to date
 tokio-timer^0.2.60.2.13up to date
 void^1.01.0.2up to date

Dev dependencies

(3 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 quickcheck^0.81.0.3out of date
 tokio ⚠️^0.11.45.0out of date
 tokio-tcp^0.10.1.4up to date

Crate susyp2p-plaintext

Dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 futures^0.10.3.31out of date
 void^11.0.2up to date

Crate susyp2p-ratelimit

Dependencies

(5 total, 1 outdated)

CrateRequiredLatestStatus
 aio-limited^0.10.1.1up to date
 futures^0.10.3.31out of date
 log^0.40.4.27up to date
 tokio-executor^0.10.1.10up to date
 tokio-io^0.10.1.13up to date

Crate susyp2p-core

Dependencies

(24 total, 16 outdated, 5 possibly insecure)

CrateRequiredLatestStatus
 asn1_der ⚠️^0.6.10.7.6out of date
 bs58^0.2.00.5.1out of date
 bytes^0.41.10.1out of date
 ed25519-dalek ⚠️^1.0.0-pre.12.1.1out of date
 failure^0.10.1.8up to date
 fnv^1.01.0.7up to date
 lazy_static^1.21.5.0up to date
 log^0.40.4.27up to date
 futures^0.10.3.31out of date
 parking_lot^0.70.12.3out of date
 protobuf ⚠️^2.33.7.2out of date
 quick-error^1.22.0.1out of date
 rand^0.60.9.1out of date
 secp256k1^0.120.31.0out of date
 sha2^0.8.00.10.9out of date
 smallvec ⚠️^0.61.15.0out of date
 tokio-executor^0.1.40.1.10up to date
 tokio-io^0.10.1.13up to date
 tokio-timer^0.20.2.13up to date
 unsigned-varint^0.20.8.0out of date
 void^11.0.2up to date
 zeroize^0.51.8.1out of date
 ring ⚠️^0.140.17.14out of date
 untrusted^0.60.9.0out of date

Dev dependencies

(8 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 env_logger^0.60.11.8out of date
 rand^0.60.9.1out of date
 quickcheck^0.81.0.3out of date
 tokio ⚠️^0.11.45.0out of date
 tokio-codec^0.10.1.2up to date
 tokio-timer^0.20.2.13up to date
 assert_matches^1.31.5.0up to date
 tokio-mock-task^0.10.1.1up to date

Crate susyp2p-core-derive

Dependencies

(2 total, 2 outdated)

CrateRequiredLatestStatus
 syn^0.15.222.0.101out of date
 quote^0.61.0.40out of date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 void^1.01.0.2up to date

Crate susyp2p-secio

Dependencies

(22 total, 16 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 asn1_der ⚠️^0.6.10.7.6out of date
 bytes^0.41.10.1out of date
 futures^0.10.3.31out of date
 log^0.4.60.4.27up to date
 protobuf ⚠️^2.33.7.2out of date
 rand^0.6.50.9.1out of date
 secp256k1^0.120.31.0out of date
 aes-ctr^0.30.99.99out of date
 aesni^0.60.99.99out of date
 twofish^0.2.00.7.1out of date
 ctr^0.30.9.2out of date
 lazy_static^1.2.01.5.0up to date
 tokio-io^0.1.00.1.13up to date
 sha2^0.8.00.10.9out of date
 hmac^0.7.00.12.1out of date
 ring ⚠️^0.140.17.14out of date
 untrusted^0.60.9.0out of date
 js-sys^0.3.100.3.77up to date
 send_wrapper^0.20.6.0out of date
 wasm-bindgen^0.2.330.2.100up to date
 wasm-bindgen-futures^0.3.100.4.50out of date
 web-sys^0.3.100.3.77up to date

Dev dependencies

(3 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 criterion^0.20.5.1out of date
 tokio ⚠️^0.11.45.0out of date
 tokio-tcp^0.10.1.4up to date

Crate susyp2p-uds

Dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 log^0.4.10.4.27up to date
 futures^0.10.3.31out of date
 tokio-uds^0.20.2.7up to date

Dev dependencies

(3 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tempfile^3.03.19.1up to date
 tokio ⚠️^0.11.45.0out of date
 tokio-io^0.10.1.13up to date

Crate susyp2p-websocket

Dependencies

(6 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 futures^0.10.3.31out of date
 log^0.4.10.4.27up to date
 tokio-io^0.10.1.13up to date
 websocket ⚠️^0.22.20.27.1out of date
 stdweb^0.40.4.20up to date
 wasm-bindgen^0.2.420.2.100up to date

Dev dependencies

(1 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date

Crate susyp2p-yamux

Dependencies

(4 total, 2 outdated)

CrateRequiredLatestStatus
 futures^0.10.3.31out of date
 log^0.40.4.27up to date
 tokio-io^0.10.1.13up to date
 yamux^0.2.00.13.4out of date

Crate susyp2p-dns

Dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 log^0.4.10.4.27up to date
 futures^0.10.3.31out of date
 tokio-dns-unofficial^0.40.4.0up to date
 tokio-io^0.10.1.13up to date

Dev dependencies

(1 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date

Crate susyp2p-mdns

Dependencies

(12 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 data-encoding^2.02.9.0up to date
 dns-parser^0.80.8.0up to date
 futures^0.10.3.31out of date
 log^0.40.4.27up to date
 net2^0.20.2.39up to date
 rand^0.60.9.1out of date
 smallvec ⚠️^0.61.15.0out of date
 tokio-io^0.10.1.13up to date
 tokio-reactor^0.10.1.12up to date
 tokio-timer^0.20.2.13up to date
 tokio-udp^0.10.1.6up to date
 void^1.01.0.2up to date

Dev dependencies

(1 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date

Crate susyp2p-noise

Dependencies

(10 total, 7 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 curve25519-dalek ⚠️^14.1.3out of date
 futures^0.10.3.31out of date
 lazy_static^1.21.5.0up to date
 log^0.40.4.27up to date
 rand^0.6.50.9.1out of date
 ring ⚠️^0.140.17.14out of date
 snow ⚠️^0.5.10.9.6out of date
 tokio-io^0.10.1.13up to date
 x25519-dalek^0.52.0.1out of date
 zeroize^0.51.8.1out of date

Dev dependencies

(4 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 env_logger^0.60.11.8out of date
 quickcheck^0.81.0.3out of date
 tokio ⚠️^0.11.45.0out of date
 sodiumoxide^0.20.2.7up to date

Crate susyp2p-tcp

Dependencies

(6 total, 1 outdated)

CrateRequiredLatestStatus
 get_if_addrs^0.5.30.5.3up to date
 log^0.4.10.4.27up to date
 futures^0.10.3.31out of date
 tk-listen^0.2.00.2.1up to date
 tokio-io^0.10.1.13up to date
 tokio-tcp^0.10.1.4up to date

Dev dependencies

(1 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date

Crate multistream-select

Dependencies

(7 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 bytes^0.41.10.1out of date
 futures^0.10.3.31out of date
 log^0.40.4.27up to date
 smallvec ⚠️^0.61.15.0out of date
 tokio-codec^0.10.1.2up to date
 tokio-io^0.10.1.13up to date
 unsigned-varint^0.2.10.8.0out of date

Dev dependencies

(2 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date
 tokio-tcp^0.10.1.4up to date

Crate peer-id-generator

Dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 num_cpus^1.81.16.0up to date
 rand^0.60.9.1out of date

Crate rw-stream-sink

Dependencies

(3 total, 2 outdated)

CrateRequiredLatestStatus
 bytes^0.41.10.1out of date
 futures^0.10.3.31out of date
 tokio-io^0.10.1.13up to date

Crate susyp2p-observed-address

Dependencies

(5 total, 3 outdated)

CrateRequiredLatestStatus
 bytes^0.41.10.1out of date
 futures^0.10.3.31out of date
 tokio-codec^0.10.1.2up to date
 tokio-io^0.10.1.13up to date
 unsigned-varint^0.2.10.8.0out of date

Dev dependencies

(1 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^0.11.45.0out of date

Security Vulnerabilities

asn1_der: Processing of maliciously crafted length fields causes memory allocation SIGABRTs

RUSTSEC-2019-0007

Affected 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_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.

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.

websocket: Unbounded memory allocation based on untrusted length

RUSTSEC-2022-0035

Impact

Untrusted websocket connections can cause an out-of-memory (OOM) process abort in a client or a server. The root cause of the issue is during dataframe parsing. Affected versions would allocate a buffer based on the declared dataframe size, which may come from an untrusted source. When Vec::with_capacity fails to allocate, the default Rust allocator will abort the current process, killing all threads. This affects only sync (non-Tokio) implementation. Async version also does not limit memory, but does not use with_capacity, so DoS can happen only when bytes for oversized dataframe or message actually got delivered by the attacker.

This is a security concern for you, if

  • your server application handles untrusted websocket connections
  • OR your client application connects to untrusted websocket servers

Patches

The crashes are fixed in version 0.26.5 by imposing default dataframe size limits. Affected users are advised to update to this version.

Note that default memory limits are rather large (100MB dataframes and 200 MB messages), so they can still cause DoS in some environments (i.e. 32-bit). New API has been added to fine tune those limits for specific applications.

Workarounds

  • Migrate your project to another, maintained Websocket library like Tungstenite.
  • Accept only trusted WebSocket traffic.
  • Filter the WebSocket traffic though some kind of proxy that ensures sanity limits on messages.
  • Handle process aborts gracefully and limit process memory using OS tools.

Credits

This issue was reported by Evan Richter at ForAllSecure and found with Mayhem and Cargo Fuzz.

ed25519-dalek: Double Public Key Signing Function Oracle Attack on `ed25519-dalek`

RUSTSEC-2022-0093

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 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.

curve25519-dalek: Timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`

RUSTSEC-2024-0344

Timing variability of any kind is problematic when working with potentially secret values such as elliptic curve scalars, and such issues can potentially leak private keys and other secrets. Such a problem was recently discovered in curve25519-dalek.

The Scalar29::sub (32-bit) and Scalar52::sub (64-bit) functions contained usage of a mask value inside a loop where LLVM saw an opportunity to insert a branch instruction (jns on x86) to conditionally bypass this code section when the mask value is set to zero as can be seen in godbolt:

A similar problem was recently discovered in the Kyber reference implementation:

https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/cnE3pbueBgAJ

As discussed on that thread, one portable solution, which is also used in this PR, is to introduce a volatile read as an optimization barrier, which prevents the compiler from optimizing it away.

The fix can be validated in godbolt here:

The problem was discovered and the solution independently verified by Alexander Wagner [email protected] and Lea Themint [email protected] using their DATA tool:

https://github.com/Fraunhofer-AISEC/DATA

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.

ring: Some AES functions may panic when overflow checking is enabled.

RUSTSEC-2025-0009

ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.