CVE-2019-25004

CRITICAL9.8EPSS 0.17%

Unsound `impl Follow for bool`

Published: 8/25/2021Modified: 11/8/2023
Also known as:GHSA-gx73-2498-r55cRUSTSEC-2019-0028

Description

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.

Affected packages (2)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1CRITICAL9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References (5)