Advisory

GHSA-gx73-2498-r55c

Also known as: CVE-2019-25004, RUSTSEC-2019-0028

Summary

Unsound casting in flatbuffers

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:46 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

flatbuffers

crates.io · All systems

Affected

  • introduced 0.4.0, fixed 0.6.1 (semver)

Fixed versions

0.6.1

Fix

  • Fixed version 0.6.1
    cargo update -p flatbuffers --precise 0.6.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences