ADVISORIES

RustSec Advisory Database

RUSTSEC-2017-0002

headers containing newline characters can split messages

Details

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.

Affected packages

EcosystemPackageAffected versions
crates.iohyper
From 0.0.0-0 before 0.9.18 (fixed in 0.9.18)
From 0.10.0 before 0.10.2 (fixed in 0.10.2)

References