Advisory

RUSTSEC-2019-0028

Also known as: CVE-2019-25004, GHSA-gx73-2498-r55c

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2019-10-20 12:00 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: RustSec Advisory Database · CC0-1.0

Sources & licences