Advisory

RUSTSEC-2017-0002

Also known as: CVE-2017-18587, GHSA-q89x-f52w-6hj2

Summary

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.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Dates

Published
2017-01-23 12:00 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

hyper

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.9.18, introduced 0.10.0, fixed 0.10.2 (semver)

Fixed versions

0.9.18, 0.10.2

Fix

  • Fixed version 0.9.18
    cargo update -p hyper --precise 0.9.18
  • Fixed version 0.10.2
    cargo update -p hyper --precise 0.10.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences