
Cloud Vulnerability DB
A community-led vulnerabilities database
A soundness issue was discovered in the gix-attributes Rust crate (GHSA-cx7h-h87r-jpgr) affecting versions prior to 0.22.3. The vulnerability was identified on July 24, 2024, and involves unsafe creation of string references from non-UTF8 data in the state::ValueRef component (RustSec, GitHub Advisory).
The vulnerability stems from gix-attributes unsafely creating a &str from a &[u8] containing non-UTF8 data. While the implementation assumed safety based on the premise that the API would prevent access to malformed UTF8 data as str, the non-UTF8 str was actually exposed to external code through the kstring crate and serde integrations, potentially leading to undefined behavior (GitHub Issue).
The issue could cause undefined behavior (UB) when the non-UTF8 string data propagates to external dependencies such as serdejson, serdeyaml, and other components that expect valid UTF-8 data. The vulnerability has been classified as low severity but represents a significant soundness concern for the Rust ecosystem (GitHub Advisory).
The issue has been fixed in version 0.22.3 of gix-attributes by replacing kstring with BString. Users are advised to upgrade to this version or later. The fix resulted in a 5% performance loss for attribute-matching heavy workloads, but prioritizes safety over optimization (GitHub Issue).
The issue was responsibly disclosed and handled through GitHub's security advisory process. The maintainers acknowledged the issue promptly and created a RustSec advisory to notify the wider Rust community. The fix was implemented as part of a larger set of improvements in the codebase (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."