Vulnerability DatabaseGHSA-cx7h-h87r-jpgr

GHSA-cx7h-h87r-jpgr
Rust vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65807HIGH8.4
  • RustRust
  • sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • typst
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management