RUSTSEC-2019-0012

Source
https://rustsec.org/advisories/RUSTSEC-2019-0012
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0012.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0012
Aliases
Published
2019-07-19T12:00:00Z
Modified
2023-11-08T04:01:14.344753Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Memory corruption in SmallVec::grow()
Details

Attempting to call grow on a spilled SmallVec with a value less than the current capacity causes corruption of memory allocator data structures.

An attacker that controls the value passed to grow may exploit this flaw to obtain memory contents or gain remote code execution.

Credits to @ehuss for discovering, reporting and fixing the bug.

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

Affected packages

crates.io / smallvec

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.6.3
Fixed
0.6.10

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "smallvec::SmallVec::grow"
        ],
        "arch": []
    }
}

Database specific

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