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.
{
"nvd_published_at": null,
"severity": "CRITICAL",
"github_reviewed_at": "2021-08-19T21:19:36Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-704"
]
}