
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (RUSTSEC-2024-0359) affects the gix-attributes Rust crate, specifically related to unsound kstring integration. The issue was discovered and reported on July 22, 2024, affecting versions prior to 0.22.3. The vulnerability involves unsafe creation of &str from &[u8] containing non-UTF8 data in the state::ValueRef implementation (GitHub Issue).
The vulnerability stems from gix-attributes unsafely creating a &str from a &[u8] containing non-UTF8 data in the state::ValueRef implementation. While the API was designed to prevent accessing the value as str, the non-UTF8 str was inadvertently exposed to external code, including the kstring crate and serde integrations. This exposure could propagate to other dependencies like serdejson and serdeyaml, potentially causing undefined behavior (GitHub Issue).
The vulnerability results in a soundness issue where using the crate from safe code could cause Undefined Behavior (UB). Performance testing showed that the fix resulted in a 5% performance loss for attribute-matching heavy workloads (GitHub Issue).
The issue has been fixed by removing kstring in favor of BString. Users should upgrade to version 0.22.3 or later to receive the fix. The solution trades some performance for safety, with the fixed version showing approximately 5% slower performance in attribute-matching workloads (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."