All reports
Medium

Headers containing newline characters can split messages in hyper

Affected versions

Version ranges need review.

Rust / Cargohyper
Affected versions
>=0.0.0-0 <0.9.18 || >=0.10.0 <0.10.2
Fixed version
0.10.2 · 0.9.18
Rust / Cargohyper
Affected versions
>= 0.10.0, < 0.10.2
Fixed version
0.10.2
Rust / Cargohyper
Affected versions
< 0.9.18
Fixed version
0.9.18

Exploitation

CVE-2017-18587

Probability of exploitation in the next 30 days: 1.03%

FIRST EPSS · 2026-11-22

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.

Links