Advisory

GHSA-q89x-f52w-6hj2

Also known as: CVE-2017-18587, RUSTSEC-2017-0002

Summary

Headers containing newline characters can split messages in hyper

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: The source's own band: MODERATE

Dates

Published
2021-08-25 20:43 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

hyper

crates.io · All systems

Affected

  • introduced 0.10.0, fixed 0.10.2 (semver)

Fixed versions

0.10.2

Fix

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

hyper

crates.io · All systems

Affected

  • introduced 0, fixed 0.9.18 (semver)

Fixed versions

0.9.18

Fix

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

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences