GHSA-f9g6-fp84-fv92
MEDIUMimpl `FromMdbValue` for bool is unsound
The implementation of FromMdbValue has 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 are available here.
- Published
- 26 Jun 2023
- Last modified
- 8 Nov 2023
- Also known as
- RUSTSEC-2023-0047
- Sources
- OSVJSONOSV RUSTSEC-2023-0047JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | lmdb-rs | <= 0.7.6 | |
| OSV | crates.io | lmdb-rs | >= 0.0.0-0 |
References
- https://github.com/vhbit/lmdb-rs/issues/67 · WEB, REPORT
- https://github.com/vhbit/lmdb-rs · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2023-0047.html · WEB, ADVISORY
- https://crates.io/crates/lmdb-rs · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Jun 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Jul 2023)