RUSTSEC-2020-0027

Source
https://rustsec.org/advisories/RUSTSEC-2020-0027
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0027.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2020-0027
Aliases
Published
2020-06-01T12:00:00Z
Modified
2023-11-08T04:03:37.256561Z
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
traitobject assumes the layout of fat pointers
Details

This crate gets the data pointer from fat pointers assuming that the first element in a fat pointer is the data pointer. This is currently true, but it may change in a future Rust version, leading to memory corruption.

This has been fixed in the master branch of the crate, but is has not been released into crates.io.

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

Affected packages

crates.io / traitobject

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "traitobject::data",
            "traitobject::data_mut"
        ],
        "arch": []
    }
}

Database specific

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