GitHub Advisoryadvisory · crates.io

GHSA-q89x-f52w-6hj2 Headers containing newline characters can split messages in hyper

MEDIUM Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2017-18587
Ecosystem
crates.io
Packages
hyper
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-93
Reviewed
2021-08-19

Affected packages

• crates.io hyper: >= 0.10.0, < 0.10.2 → fixed in 0.10.2 • crates.io hyper: < 0.9.18 → fixed in 0.9.18

Description

Serializing of headers to the socket did not filter the values for newline bytes (\r or \n), which allowed for header values to split a request or response. People would not likely include newlines in the headers in their own applications, so the way for most people to exploit this is if an application constructs headers based on unsanitized user input. This issue was fixed by replacing all newline characters with a space during serialization of a header value.

Related

Alias · CVE (1)

  • CVE-2017-18587 An issue was discovered in the hyper crate before 0.9.18 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-93 Improper Neutralization of CRLF Sequences weakness

References