
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-hmx9-jm3v-33hv) affects the buffoon crate in Rust, specifically versions 0.5.0 and below, and was discovered on December 31, 2020. The issue involves the InputStream::read_exact method creating and passing an uninitialized buffer to user-provided Read implementation, which could lead to undefined behavior and memory safety issues (RustSec Advisory, GitHub Advisory).
The vulnerability stems from the InputStream::read_exact() method's implementation where it creates an uninitialized buffer and passes it to a user-provided Read implementation. This violates the Read trait documentation's safety requirements, which explicitly states that it is the caller's responsibility to ensure the buffer is initialized before calling read. Using an uninitialized buffer obtained via MaybeUninit is not safe and can lead to undefined behavior (SSLAB Issue).
The vulnerability allows arbitrary Read implementations to read from the uninitialized buffer, potentially leading to memory exposure. Additionally, it can result in incorrect reporting of the number of bytes written to the buffer. The undefined behavior that occurs when reading from uninitialized memory can have unpredictable consequences for program execution (RustSec Advisory).
As of the latest available information, there are no patched versions available for this vulnerability. Users of the buffoon crate should consider alternative implementations or ensure proper buffer initialization before calling read operations (RustSec 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."