GHSA-f9g6-fp84-fv92 json
impl `FromMdbValue` for bool is unsound
published 3y ago modified 3y ago also RUSTSEC-2023-0047
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
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).
Is GHSA-f9g6-fp84-fv92 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | lmdb-rs | <=0.7.6 >=0.0.0-0 |
no fix listed |
References
-
github.com
/vhbit/lmdb-rs/issues/67
web, report
-
github.com
/vhbit/lmdb-rs
package
-
rustsec.org
/advisories/RUSTSEC-2023-0047.html
web, advisory
-
crates.io
/crates/lmdb-rs
package
Sources
- GitHub Advisory GHSA-f9g6-fp84-fv92
- OSV RUSTSEC-2023-0047
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.