
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-5phc-849h-vcxg) affects the bronzedb-protocol Rust crate versions 0.1.0 and earlier, discovered on January 3, 2021, and publicly disclosed on June 16, 2022. The issue involves passing an uninitialized buffer to a user-provided Read implementation in the ReadKVExt trait implementation (GitHub Advisory, RustSec Advisory).
The vulnerability exists in the implementation of ReadKVExt trait, specifically in the read_key() and read_value() methods. These methods create an uninitialized u8 buffer and pass it to a user-provided Read implementation, which violates the safety requirements of the Read trait. According to the Read trait documentation, it is the caller's responsibility to ensure the buffer is initialized before calling read (BronzeDB Issue).
When exploited, this vulnerability can lead to memory exposure as arbitrary Read implementations can read from the uninitialized buffer. Additionally, it can result in undefined behavior when reading from uninitialized memory, and the Read implementation may return an incorrect number of bytes written to the buffer (GitHub Advisory, RustSec Advisory).
The suggested fix is to zero-initialize the newly allocated u8 buffer before read(), which prevents user-provided Read implementations from reading old contents of the newly allocated heap memory (BronzeDB 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."