
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-r24f-hg58-vfrw) affects the unsafe-libyaml Rust package versions prior to 0.2.10, discovered and disclosed on December 21, 2023. The issue involves unaligned write operations of u64 data types on 32-bit and 16-bit platforms, where memory is allocated using insufficient alignment for usize operations (GitHub Advisory, RustSec Advisory).
The vulnerability stems from memory allocation using the alignment of usize while writing u64 data without utilizing core::ptr::write_unaligned. This particularly affects platforms with sub-64bit alignment for usize, including wasm32 and x86 architectures. When using an optimized standard library, the bug results in Undefined Behavior (UB), with varying manifestations depending on optimization settings and hardware configurations. In debug-enabled Rust standard library builds, the issue consistently triggers a non-unwinding panic with the message 'ptr::write requires that the pointer argument is aligned and non-null' (RustSec Advisory).
The vulnerability affects 32-bit and 16-bit platforms, potentially causing program crashes or undefined behavior. Notably, 64-bit platforms remain unaffected by this issue. The impact manifests primarily in debug builds as deterministic crashes, while in release builds, the behavior is unpredictable due to undefined behavior (GitHub Advisory).
The vulnerability has been patched in version 0.2.10 of unsafe-libyaml. The fix involves allocating memory with adequately high alignment across all platforms. Users are advised to upgrade to this version or later to resolve the alignment issues (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."