Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWd4NzMtMjQ5OC1yNTVj

Unsound casting in flatbuffers

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.

Permalink: https://github.com/advisories/GHSA-gx73-2498-r55c
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWd4NzMtMjQ5OC1yNTVj
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 2 years ago
Updated: 11 months ago


CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Identifiers: GHSA-gx73-2498-r55c, CVE-2019-25004
References: Repository: https://github.com/google/flatbuffers
Blast Radius: 28.9

Affected Packages

cargo:flatbuffers
Dependent packages: 53
Dependent repositories: 897
Downloads: 10,118,778 total
Affected Version Ranges: >= 0.4.0, < 0.6.1
Fixed in: 0.6.1
All affected versions: 0.4.0, 0.5.0, 0.6.0
All unaffected versions: 0.1.0, 0.2.0, 0.2.1, 0.3.0, 0.6.1, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.9.0, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 22.9.29, 22.10.26, 22.12.6, 23.1.21, 23.5.26, 24.3.25