Vulnerability DatabaseGHSA-xcpm-76hf-c9cc

GHSA-xcpm-76hf-c9cc
Rust vulnerability analysis and mitigation

Overview

GHSA-xcpm-76hf-c9cc is a low severity vulnerability affecting the borrowcksacrifices Rust package versions prior to 0.2.0. The vulnerability was discovered and disclosed on October 22, 2025, impacting the anyasu8slice function which could expose uninitialized memory when used with types containing padding bytes (GitHub Advisory).

Technical details

The vulnerability exists in the safe function anyasu8slice which uses slice::fromrawparts to create a &[u8] covering the entire size of a type, including padding bytes. According to Rust's documentation, fromraw_parts requires all bytes to be properly initialized, but padding bytes in structs are not guaranteed to be initialized. This violates the safety contract and causes undefined behavior (RustSec Advisory). The vulnerability has been assigned a CVSS score of 2.0 (Low) with the vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to the exposure of uninitialized memory when the function is used with types containing padding bytes. This primarily affects the availability of the system, though without direct impact on confidentiality or integrity (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.2.0 of the borrowck_sacrifices package. Users should upgrade to this version or later to address the security issue (RustSec Advisory).

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

GHSA-wwxp-hxh6-8gf8HIGH7.3
  • RustRust
  • binary_vec_io
NoNoOct 22, 2025
GHSA-x77x-7mmh-cxv3MEDIUM5.5
  • RustRust
  • ncurses
NoNoOct 22, 2025
CVE-2025-62711LOW2.1
  • RustRust
  • wasmtime
NoYesOct 24, 2025
GHSA-xcpm-76hf-c9ccLOW2
  • RustRust
  • borrowck_sacrifices
NoYesOct 22, 2025
GHSA-fp5x-7m4q-449fLOW2
  • RustRust
  • direct_ring_buffer
NoYesOct 21, 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