RUSTSEC-2019-0028

Source
https://rustsec.org/advisories/RUSTSEC-2019-0028
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0028.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0028
Aliases
Published
2019-10-20T12:00:00Z
Modified
2023-11-08T04:01:32.107935Z
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
Unsound `impl Follow for bool`
Details

The implementation of impl Follow for bool allows to reinterpret arbitrary bytes as a bool.

In Rust bool has stringent requirements for its in-memory representation. Use of this function allows to violate these requirements and invoke undefined behaviour in safe code.

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

Affected packages

crates.io / flatbuffers

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.4.0
Fixed
0.6.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "flatbuffers::Follow::follow"
        ],
        "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": []
}