
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-xfhw-6mc4-mgxf) affects the crayon Rust crate versions 0.6.0 through 0.7.1, discovered in February 2024. The issue involves the ObjectPool implementation creating uninitialized memory when freeing objects, which leads to undefined behavior. This vulnerability was introduced in version 0.6.0 and affects the core functionality of the crate's object pooling system (GitHub Advisory, RustSec Advisory).
The vulnerability occurs in the ObjectPool's free method, where it explicitly creates an uninitialized instance of its type parameter when attempting to free an object. The issue manifests when this uninitialized memory is read in order to write it to the pool storage, resulting in immediate undefined behavior. The vulnerability can be triggered through basic usage of the crate, such as when deleting mesh objects. The issue was initially masked as a Clippy warning that was silenced in commit c2fde19 (RustSec Advisory).
The vulnerability leads to memory corruption and undefined behavior in applications using the affected versions of the crayon crate. This can potentially cause application crashes and unpredictable behavior, particularly when dealing with object deletion and memory management operations (GitHub Advisory).
The vulnerability can be triggered through normal usage of the crate's API, specifically when using the object deletion functionality. A simple code example that demonstrates the issue involves creating and deleting mesh objects using the video::delete_mesh function (GitHub Issue).
Currently, there are no patched versions available for this vulnerability. The only mitigation is to use versions prior to 0.6.0, which are unaffected by this issue (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."