Update dependencies: #18
Security advisories found
6 advisory(ies), 2 unmaintained, 3 other
Details
Vulnerabilities
RUSTSEC-2024-0332
Degradation of service in h2 servers with CONTINUATION Flood
Details | |
---|---|
Package | h2 |
Version | 0.2.7 |
Date | 2024-04-03 |
Patched versions | ^0.3.26,>=0.4.4 |
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.
RUSTSEC-2024-0003
Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)
Details | |
---|---|
Package | h2 |
Version | 0.2.7 |
Date | 2024-01-17 |
Patched versions | ^0.3.24,>=0.4.2 |
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.
RUSTSEC-2023-0034
Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)
Details | |
---|---|
Package | h2 |
Version | 0.2.7 |
URL | hyperium/hyper#2877 |
Date | 2023-04-14 |
Patched versions | >=0.3.17 |
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.
RUSTSEC-2021-0079
Integer overflow in
hyper
's parsing of theTransfer-Encoding
header leads to data loss
Details | |
---|---|
Package | hyper |
Version | 0.13.10 |
URL | GHSA-5h46-h7hh-c6x9 |
Date | 2021-07-07 |
Patched versions | >=0.14.10 |
When decoding chunk sizes that are too large, hyper
's code would encounter an integer overflow. Depending on the situation,
this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.
To be vulnerable, you must be using hyper
for any HTTP/1 purpose, including as a client or server, and consumers must send
requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible,
any upstream proxies must accept a chunk size greater than 64 bits.
RUSTSEC-2021-0078
Lenient
hyper
header parsing ofContent-Length
could allow request smuggling
Details | |
---|---|
Package | hyper |
Version | 0.13.10 |
URL | GHSA-f3pg-qwvg-p99c |
Date | 2021-07-07 |
Patched versions | >=0.14.10 |
hyper
's HTTP header parser accepted, according to RFC 7230, illegal contents inside Content-Length
headers.
Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.
To be vulnerable, hyper
must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents
but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.
RUSTSEC-2021-0124
Data race when sending and receiving after closing a
oneshot
channel
Details | |
---|---|
Package | tokio |
Version | 0.2.25 |
URL | tokio-rs/tokio#4225 |
Date | 2021-11-16 |
Patched versions | >=1.8.4, <1.9.0,>=1.13.1 |
Unaffected versions | <0.1.14 |
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 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.
Warnings
RUSTSEC-2021-0139
ansi_term is Unmaintained
Details | |
---|---|
Status | unmaintained |
Package | ansi_term |
Version | 0.12.1 |
URL | ogham/rust-ansi-term#72 |
Date | 2021-08-18 |
The maintainer has advised that this crate is deprecated and will not receive any maintenance.
The crate does not seem to have much dependencies and may or may not be ok to use as-is.
Last release seems to have been three years ago.
Possible Alternative(s)
The below list has not been vetted in any way and may or may not contain alternatives;
Dependency Specific Migration(s)
RUSTSEC-2020-0016
net2
crate has been deprecated; usesocket2
instead
Details | |
---|---|
Status | unmaintained |
Package | net2 |
Version | 0.2.39 |
URL | deprecrated/net2-rs@3350e38 |
Date | 2020-05-01 |
The net2
crate has been deprecated
and users are encouraged to considered socket2
instead.