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 hyper

Dependencies

(16 total, 8 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 bytes^0.51.9.0out of date
 futures-channel^0.30.3.31up to date
 futures-core^0.30.3.31up to date
 futures-util^0.30.3.31up to date
 h2 ⚠️^0.2.20.4.7out of date
 http^0.21.2.0out of date
 http-body^0.3.11.0.1out of date
 httparse^1.01.9.5up to date
 httpdate^0.31.0.3out of date
 itoa^0.4.11.0.14out of date
 pin-project^1.01.1.7up to date
 socket2^0.30.5.8out of date
 tokio ⚠️^0.2.111.42.0out of date
 tower-service^0.30.3.3up to date
 tracing^0.10.1.41up to date
 want^0.30.3.1up to date

Dev dependencies

(14 total, 6 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 futures-util^0.30.3.31up to date
 matches^0.10.1.10up to date
 num_cpus^1.01.16.0up to date
 pnet ⚠️^0.25.00.35.0out of date
 pretty_env_logger^0.40.5.0out of date
 serde^1.01.0.216up to date
 serde_derive^1.01.0.216up to date
 serde_json^1.01.0.133up to date
 spmc^0.30.3.0up to date
 tokio ⚠️^0.2.21.42.0out of date
 tokio-test^0.20.4.4out of date
 tokio-util^0.30.7.13out of date
 tower-util^0.30.3.1up to date
 url^1.02.5.4out of date

Security Vulnerabilities

pnet: Compiler optimisation for next_with_timeout in pnet::transport::IcmpTransportChannelIterator flaws to SEGFAULT

RUSTSEC-2019-0037

Affected versions of this crate were optimized out by compiler, which caused dereference of uninitialized file descriptor which caused segfault.

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.

h2: Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)

RUSTSEC-2023-0034

If an attacker is able to flood the network with pairs of HEADERS/RST_STREAM frames, such that the h2 application is not able to accept them faster than the bytes are received, the pending accept queue can grow in memory usage. Being able to do this consistently can result in excessive memory use, and eventually trigger Out Of Memory.

This flaw is corrected in hyperium/h2#668, which restricts remote reset stream count by default.

h2: Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)

RUSTSEC-2024-0003

An attacker with an HTTP/2 connection to an affected endpoint can send a steady stream of invalid frames to force the generation of reset frames on the victim endpoint. By closing their recv window, the attacker could then force these resets to be queued in an unbounded fashion, resulting in Out Of Memory (OOM) and high CPU usage.

This fix is corrected in hyperium/h2#737, which limits the total number of internal error resets emitted by default before the connection is closed.

h2: Degradation of service in h2 servers with CONTINUATION Flood

RUSTSEC-2024-0332

An attacker can send a flood of CONTINUATION frames, causing h2 to process them indefinitely. This results in an increase in CPU usage.

Tokio task budget helps prevent this from a complete denial-of-service, as the server can still respond to legitimate requests, albeit with increased latency.

More details at "https://seanmonstar.com/blog/hyper-http2-continuation-flood/.

Patches available for 0.4.x and 0.3.x versions.