
Cloud Vulnerability DB
A community-led vulnerabilities database
A moderate severity vulnerability was discovered in the lmdb-rs Rust package, identified as GHSA-f9g6-fp84-fv92. The issue was reported on June 26, 2023, and published to the GitHub Advisory Database on July 19, 2023. The vulnerability affects versions <= 0.7.6 of the lmdb-rs package, with no patched versions available (GitHub Advisory, RustSec Advisory).
The vulnerability lies in the implementation of FromMdbValue trait, which contains multiple unsoundness issues. The primary technical problem is that it allows reinterpreting arbitrary bytes as boolean values through unsafe memory transmutation. The implementation also performs pointer transmutation without proper consideration of memory layout. This can be reproduced by using lmdbrsm::core::MdbValue and lmdbrsm::FromMdbValue to convert arbitrary integer values to boolean, triggering undefined behavior when run with Miri (GitHub Issue).
The vulnerability can lead to undefined behavior in safe Rust functions, potentially compromising the safety guarantees that Rust provides. This is particularly concerning as it allows arbitrary bytes to be interpreted as boolean values, which could lead to unpredictable program behavior (RustSec Advisory).
As of the latest reports, there are no patched versions available for this vulnerability. Users of the lmdb-rs package version 0.7.6 or earlier should be aware of this issue when implementing FromMdbValue trait, particularly for boolean values (GitHub Advisory).
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."