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

Crate hyper

Dependencies

(16 total, 8 outdated, 2 insecure)

CrateRequiredLatestStatus
 bytes^0.51.12.1out of date
 futures-channel^0.30.3.34up to date
 futures-core^0.30.3.34up to date
 futures-util^0.30.3.34up to date
 h2 ⚠️^0.2.20.4.19insecure
 http^0.21.5.0out of date
 http-body^0.3.11.1.0out of date
 httparse^1.01.10.1up to date
 httpdate^0.31.0.3out of date
 itoa^0.4.11.0.18out of date
 pin-project^1.01.1.13up to date
 socket2^0.30.6.5out of date
 tokio ⚠️^0.2.111.53.1insecure
 tower-service^0.30.3.3up to date
 tracing^0.10.1.44up to date
 want^0.30.3.1up to date

Dev dependencies

(14 total, 6 outdated, 2 insecure)

CrateRequiredLatestStatus
 futures-util^0.30.3.34up to date
 matches^0.10.1.10up to date
 num_cpus^1.01.17.0up to date
 pnet ⚠️^0.25.00.35.0insecure
 pretty_env_logger^0.40.5.0out of date
 serde^1.01.0.229up to date
 serde_derive^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 spmc^0.30.3.0up to date
 tokio ⚠️^0.2.21.53.1insecure
 tokio-test^0.20.4.6out of date
 tokio-util^0.30.7.19out of date
 tower-util^0.30.3.1up to date
 url^1.02.5.8out 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.

h2: h2 unbounded empty DATA frames

RUSTSEC-2026-0258

The h2 crate, used internally by hyper, had a flaw that would accept and queue empty DATA frames without limit. If streams were not actively drained, this could lead to unbounded memory usage, or a panic if the length overflows.

Low severity.

Patched in v0.4.16.