RUSTSEC-2019-0034

Source
https://rustsec.org/advisories/RUSTSEC-2019-0034
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0034.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0034
Aliases
Published
2019-11-16T12:00:00Z
Modified
2023-11-08T04:01:32.355317Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / http

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.1.20

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "http::header::HeaderMap::drain"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "informational": null,
    "categories": [
        "memory-corruption"
    ]
}