Advisory

RUSTSEC-2019-0034

Also known as: CVE-2019-25009, GHSA-6rhx-hqxm-8p36

Summary

HeaderMap::Drain API is unsound

Details

Affected versions of this crate incorrectly used raw pointer,
which introduced unsoundness in its public safe API.

Failing to drop the Drain struct causes double-free,
and it is possible to violate Rust's alias rule and cause data race with Drain's Iterator implementation.

The flaw was corrected in 0.1.20 release of http crate.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2019-11-16 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

http

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.1.20 (semver)

Fixed versions

0.1.20

Fix

  • Fixed version 0.1.20
    cargo update -p http --precise 0.1.20

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