
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-g753-ghr7-q33w) affects the cyfs-base Rust package, specifically in versions <= 0.6.12. The issue was discovered in the ChunkId::new function, which creates a misaligned pointer by incorrectly casting a mutable pointer of a u8 slice (alignment 1) to a mutable pointer of u32 (alignment 4). This vulnerability was reported on June 15, 2023, and published to the GitHub Advisory Database on June 22, 2023 (GitHub Advisory, RustSec Advisory).
The vulnerability occurs in the ChunkId::new function implementation where an unsafe pointer casting operation leads to undefined behavior (UB). The function attempts to dereference a misaligned pointer, which violates memory alignment requirements in Rust. Specifically, it tries to cast a u8 slice pointer (1-byte alignment) to a u32 pointer (4-byte alignment) without ensuring proper alignment. This operation is performed in safe code, which should not allow such undefined behavior (GitHub Issue).
When exploited, this vulnerability causes the program to panic with a "misaligned pointer dereference" error, indicating that the memory address must be a multiple of 0x4. This affects any application attempting to create a new ChunkId using the affected function, potentially leading to program crashes and reliability issues (GitHub Issue).
Currently, there are no patched versions available for this vulnerability. Users of cyfs-base version 0.6.12 or earlier should be aware of this issue when using the ChunkId::new function (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."