Advisory

RUSTSEC-2021-0081

Also known as: CVE-2021-38512, GHSA-8928-2fgm-6x9x

Summary

Potential request smuggling capabilities due to lack of input validation

Details

Affected versions of this crate did not properly detect invalid requests that could allow HTTP/1 request smuggling (HRS) attacks when running alongside a vulnerable front-end proxy server. This can result in leaked internal and/or user data, including credentials, when the front-end proxy is also vulnerable.

Popular front-end proxies and load balancers already mitigate HRS attacks so it is recommended that they are also kept up to date; check your specific set up. You should upgrade even if the front-end proxy receives exclusively HTTP/2 traffic and connects to the back-end using HTTP/1; several downgrade attacks are known that can also expose HRS vulnerabilities.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2021-06-16 12:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

actix-http

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 2.2.1, introduced 3.0.0-0, fixed 3.0.0-beta.9 (semver)

Fixed versions

2.2.1, 3.0.0-beta.9

Fix

  • Fixed version 2.2.1
    cargo update -p actix-http --precise 2.2.1
  • Fixed version 3.0.0-beta.9
    cargo update -p actix-http --precise 3.0.0-beta.9

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences