RUSTSEC-2023-0047
Dashboard / Vulnerabilities / RUSTSEC-2023-0047
Summary: impl `FromMdbValue` for bool is unsound
Details: The implementation of `FromMdbValue` have several unsoundness issues. First of all, it allows to reinterpret arbitrary bytes as a bool and could make undefined behavior happen with safe function. Secondly, it allows transmuting pointer without taking memory layout into consideration. The details of reproducing the bug were included in url above.
References: https://crates.io/crates/lmdb-rs, https://rustsec.org/advisories/RUSTSEC-2023-0047.html, https://github.com/vhbit/lmdb-rs/issues/67
Affected packages
Package
Name: lmdb-rs
Purl: pkg:cargo/lmdb-rs
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -None
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
