
Cloud Vulnerability DB
A community-led vulnerabilities database
A null pointer dereference vulnerability was discovered in the AsciiStr struct's first method within the fast-float-rust library. The vulnerability allows arbitrary memory access when an empty buffer is provided, potentially leading to undefined behavior and segmentation faults (Github Issue).
The vulnerability exists in the first method of the AsciiStr struct, which uses unsafe Rust code to directly dereference a pointer without performing bounds checking. When an empty buffer is provided to the struct, the code attempts to access memory at an invalid location, triggering undefined behavior. The issue was confirmed using Address Sanitizer (ASan) which detected a stack-buffer-overflow and segmentation fault when testing with an empty buffer (Github Issue).
This vulnerability could allow an attacker to cause program crashes through segmentation faults when providing empty buffers to the AsciiStr struct. While direct exploitation may be challenging, it undermines Rust's memory safety guarantees and could potentially be used as part of a larger attack chain (Github Issue).
The issue has been patched in fast-float2 version 0.2.2 by modifying the first method to return an Option type and implementing proper bounds checking. Users are recommended to upgrade to this version or later to address the vulnerability (Github 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."