Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. actix-http
  4. ›
  5. CVE-2021-38512

CVE-2021-38512: HTTP Request Smuggling in actix-http

August 25, 2021

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.

References

  • github.com/actix/actix-web
  • github.com/actix/actix-web/commit/e965d8298f421e9c89fe98b1300b8361e948c324
  • github.com/actix/actix-web/pull/2363
  • github.com/advisories/GHSA-8928-2fgm-6x9x
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/67URRW4K47SR6LNQB4YALPLGGQMQK7HO
  • nvd.nist.gov/vuln/detail/CVE-2021-38512
  • raw.githubusercontent.com/rustsec/advisory-db/main/crates/actix-http/RUSTSEC-2021-0081.md
  • rustsec.org/advisories/RUSTSEC-2021-0081.html

Code Behaviors & Features

Detect and mitigate CVE-2021-38512 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.1

Fixed versions

  • 2.2.1

Solution

Upgrade to version 2.2.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

cargo/actix-http/CVE-2021-38512.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:30 +0000.