
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (RUSTSEC-2023-0047) was discovered in the lmdb-rs Rust library, specifically in the implementation of from_mdb_value for boolean values. The issue was reported on June 27, 2023, affecting the core functionality of the library's data type conversion mechanism (GitHub Issue).
The vulnerability stems from an unsound implementation in the from_mdb_value trait for boolean types. The issue occurs in the file lmdb-rs/src/traits.rs where the function uses unsafe transmutation of arbitrary bit patterns to boolean values. When tested with Miri (Rust's interpreter for detecting undefined behavior), it reveals that attempting to construct a boolean value from invalid bit patterns (such as 0x03) leads to undefined behavior (GitHub Issue).
The vulnerability can lead to undefined behavior in Rust programs using the lmdb-rs library, particularly when converting values to boolean types. This violates Rust's safety guarantees, as undefined behavior should not occur within safe functions (GitHub Issue).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."