impl `FromMdbValue` for bool is unsound
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- No fix listed
No CVSS vector from any source. Fix status from GitHub.
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | lmdb-rs (crates.io) | up to 0.7.6 | — | No fix listed | GHSA-f9g6-fp84-fv92 |
- lmdb-rs (crates.io) Vendor— Affected up to 0.7.6 Fixed in — No fix listed GHSA-f9g6-fp84-fv92
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-03 Threatist record created from GHSA-f9g6-fp84-fv92
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences