GHSA-xcpm-76hf-c9cc: Borrowck sacrifices Borrowck Scarifices Exposes Uninitialized Memory Vulnerability

LOW
CWE-824
Published
Advisory Summary

GHSA-xcpm-76hf-c9cc is a LOW borrowck scarifices exposes uninitialized memory vulnerability (CWE-824: Access of Uninitialized Pointer) affecting Borrowck sacrifices libraries in the crates.io ecosystem. The issue involves borrowck scarifices exposes uninitialized memory in any_as_u8_slice. Remediation is available by upgrading affected packages to version 0.2.0.

GHSA-xcpm-76hf-c9cc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xcpm-76hf-c9cc
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-824: Access of Uninitialized Pointer
Affected Product Borrowck sacrifices
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-xcpm-76hf-c9cc

To remediate this vulnerability, upgrade all affected Borrowck sacrifices dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

borrowck_sacrifices fixed: 0.2.0
Upgrade borrowck_sacrifices to 0.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for borrowck_sacrifices

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xcpm-76hf-c9cc, inspect your project dependencies for Borrowck sacrifices:

inspect dependencies for borrowck_sacrifices

Analyze the terminal output to locate any version of Borrowck sacrifices in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-824: Access of Uninitialized Pointer, where the product accesses or uses a pointer that has not been initialized. In Borrowck sacrifices, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The safe function `any_as_u8_slice` can create byte slices that reference uninitialized memory when used with types containing padding bytes. The function uses `slice::from_raw_parts` to create a `&[u8]` covering the entire size of a type, including padding bytes. According to Rust's documentation, `from_raw_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.

GHSA-xcpm-76hf-c9cc Affected Borrowck sacrifices Versions

1 component(s)
Fixed Versions:
0.2.0
Product / Package Ecosystem Affected Versions Fixed Version
borrowck_sacrifices
crates.io
< 0.2.0
0.2.0

References

Frequently Asked Questions

What is GHSA-xcpm-76hf-c9cc?
GHSA-xcpm-76hf-c9cc is a security vulnerability in Borrowck sacrifices involving Borrowck Scarifices exposes uninitialized memory in any_as_u8_slice under CWE-824: Access of Uninitialized Pointer.
Which Borrowck sacrifices versions are affected?
Affected versions include releases prior to 0.2.0 across affected packages: borrowck_sacrifices.
What version fixes GHSA-xcpm-76hf-c9cc?
Upgrading to 0.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is borrowck_sacrifices affected?
Yes, borrowck_sacrifices is affected in releases prior to 0.2.0. Upgrade your dependency to 0.2.0 or later.
What CWE is associated with GHSA-xcpm-76hf-c9cc?
GHSA-xcpm-76hf-c9cc is classified under CWE-824: Access of Uninitialized Pointer (The product accesses or uses a pointer that has not been initialized.).
How can I check crates.io dependencies for GHSA-xcpm-76hf-c9cc?
Run the dependency tree command: 'inspect dependencies for borrowck_sacrifices'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xcpm-76hf-c9cc",
  "modified" : "2025-10-22T16:35:08Z",
  "published" : "2025-10-22T16:35:08Z",
  "aliases" : [ ],
  "summary" : "Borrowck Scarifices exposes uninitialized memory in any_as_u8_slice",
  "details" : "The safe function `any_as_u8_slice` can create byte slices that reference uninitialized memory when used with types containing padding bytes.\n\nThe function uses `slice::from_raw_parts` to create a `&[u8]` covering the entire size of a type, including padding bytes. According to Rust's documentation, `from_raw_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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "borrowck_sacrifices"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/alexpyattaev/borrowck_sacrifices/issues/1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/alexpyattaev/borrowck_sacrifices/commit/1bdaa14da68a6e8207f9e81359116f53139800f2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/alexpyattaev/borrowck_sacrifices"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0107.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-824" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-22T16:35:08Z",
    "nvd_published_at" : null
  }
}