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

Crate actix-http

Dependencies

(41 total, 19 outdated, 1 insecure)

CrateRequiredLatestStatus
 actix>=0.10.0, <0.11.00.13.5out of date
 actix-codec>=0.3.0, <0.4.00.5.4out of date
 actix-connect>=2.0.0, <3.0.02.0.0up to date
 actix-rt>=1.0.0, <2.0.02.15.0out of date
 actix-service>=1.0.6, <2.0.02.0.3out of date
 actix-threadpool>=0.3.1, <0.4.00.3.3up to date
 actix-tls>=2.0.0, <3.0.03.6.0out of date
 actix-utils>=2.0.0, <3.0.03.0.2out of date
 base64>=0.13.0, <0.14.00.23.1out of date
 bitflags>=1.2.0, <2.0.02.13.2out of date
 brotli2>=0.3.2, <0.4.00.3.2up to date
 bytes>=0.5.3, <0.6.01.12.1out of date
 cookie>=0.14.1, <0.15.00.18.2out of date
 copyless>=0.1.4, <0.2.00.1.5up to date
 derive_more>=0.99.2, <0.100.02.1.1out of date
 either>=1.5.3, <2.0.01.18.0up to date
 encoding_rs>=0.8.0, <0.9.00.8.41up to date
 flate2>=1.0.13, <2.0.01.1.10up to date
 futures-channel>=0.3.5, <0.4.00.3.34up to date
 futures-core>=0.3.5, <0.4.00.3.34up to date
 futures-util>=0.3.5, <0.4.00.3.34up to date
 fxhash>=0.2.1, <0.3.00.2.1up to date
 h2 ⚠️>=0.2.1, <0.3.00.4.19insecure
 http>=0.2.0, <0.3.01.5.0out of date
 httparse>=1.3.0, <2.0.01.10.1up to date
 indexmap>=1.3.0, <2.0.02.14.2out of date
 itoa>=0.4.0, <0.5.01.0.18out of date
 language-tags>=0.2.0, <0.3.00.3.2out of date
 lazy_static>=1.4.0, <2.0.01.5.0up to date
 log>=0.4.0, <0.5.00.4.34up to date
 mime>=0.3.0, <0.4.00.3.17up to date
 percent-encoding>=2.1.0, <3.0.02.3.2up to date
 pin-project>=1.0.0, <2.0.01.1.13up to date
 rand>=0.7.0, <0.8.00.10.3out of date
 regex>=1.3.0, <2.0.01.13.1up to date
 serde>=1.0.0, <2.0.01.0.229up to date
 serde_json>=1.0.0, <2.0.01.0.151up to date
 serde_urlencoded>=0.7.0, <0.8.00.7.1up to date
 sha-1>=0.9.0, <0.10.00.10.1out of date
 slab>=0.4.0, <0.5.00.4.12up to date
 time>=0.2.7, <0.3.00.3.55out of date

Security Vulnerabilities

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.