RUSTSEC-2021-0078

Source
https://rustsec.org/advisories/RUSTSEC-2021-0078
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0078.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0078
Aliases
Published
2021-07-07T12:00:00Z
Modified
2023-11-01T04:55:28.401747Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Lenient `hyper` header parsing of `Content-Length` could allow request smuggling
Details

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.

References

Affected packages

crates.io / hyper

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.14.10

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
    "informational": null,
    "categories": []
}