{"id":"GHSA-f9g6-fp84-fv92","aliases":["GHSA-f9g6-fp84-fv92","RUSTSEC-2023-0047"],"related":[],"kind":"vulnerability","state":"published","title":"impl `FromMdbValue` for bool is unsound","summary":"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](https://github.com/vhbit/lmdb-rs/issues/67).","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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](https://github.com/vhbit/lmdb-rs/issues/67).","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"rustsec"}],"published":"2023-06-26T12:00:00.000Z","modified":"2023-11-08T04:18:55.242Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.7.6"}],"ecosystem":"crates.io","package":"lmdb-rs","purl":"pkg:cargo/lmdb-rs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"lmdb-rs","purl":"pkg:cargo/lmdb-rs","source":"rustsec"}],"references":[{"url":"https://github.com/vhbit/lmdb-rs/issues/67","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/vhbit/lmdb-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0047.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/lmdb-rs","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f9g6-fp84-fv92","url":"https://github.com/advisories/GHSA-f9g6-fp84-fv92","licence":"CC-BY-4.0","modified":"2023-11-08T04:18:55.242Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0047","url":"https://rustsec.org/advisories/RUSTSEC-2023-0047.html","licence":"CC0-1.0","modified":"2023-11-08T04:18:55.242Z"}],"updatedAt":"2026-11-25T22:56:43.151Z"}