PT-2019-16421 · Rust · Flatbuffers
Publicado
2019-10-20
·
Atualizado
2021-08-25
·
CVE-2019-25004
CVSS v3.1
9.8
Crítica
| Vetor | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
flatbuffers crate versions prior to 0.6.1
Description
An issue in the flatbuffers crate for Rust allows arbitrary bytes to be reinterpreted as a bool, defeating soundness. The implementation of
impl Follow for bool enables this reinterpretation, violating the stringent requirements for the in-memory representation of bool in Rust and potentially invoking undefined behavior in safe code.Recommendations
For versions prior to 0.6.1, update to version 0.6.1 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
impl Follow for bool function to minimize the risk of exploitation.Exploit
Correção
Incorrect Type Conversion or Cast
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Flatbuffers