~ / search / GHSA-gx73-2498-r55c

GHSA-gx73-2498-r55c

Unsound casting in flatbuffers

Source: GitHub Advisory Database (reviewed) Critical CVE-2019-25004

Packages

EcosystemPackageAffectedFixed in
crates.io flatbuffers >= 0.4.0, < 0.6.1 0.6.1

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.