GHSA-xcpm-76hf-c9cc
Rust Análisis y mitigación de vulnerabilidades

Vista general

The vulnerability (GHSA-xcpm-76hf-c9cc) affects the borrowcksacrifices Rust crate, specifically in the anyasu8slice function. Discovered and reported on October 15, 2025, and officially published on October 22, 2025, this vulnerability exposes uninitialized memory when handling types containing padding bytes. The issue affects versions prior to 0.2.0 of the borrowck_sacrifices crate (GitHub Advisory, RustSec Advisory).

Técnicas

The vulnerability stems from the safe function anyasu8slice creating byte slices that reference uninitialized memory when used with types containing padding bytes. The function utilizes slice::fromrawparts to create a &[u8] covering the entire size of a type, including padding bytes. This violates Rust's safety contract as fromraw_parts requires all bytes to be properly initialized, but padding bytes in structs are not guaranteed to be initialized. The vulnerability has been assigned a CVSS v4.0 score of 2.0 (Low severity) with the vector string 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 and is classified as CWE-824 (Access of Uninitialized Pointer) (GitHub Advisory).

Impacto

The vulnerability leads to undefined behavior when accessing struct padding bytes, potentially exposing uninitialized memory. This can result in memory safety violations and potential security implications when working with structured data types that contain padding (RustSec Advisory).

Mitigación y soluciones alternativas

The vulnerability has been patched in version 0.2.0 of the borrowck_sacrifices crate. Users are advised to upgrade to this version or later to address the issue. For those unable to upgrade immediately, the suggested workaround is to modify the function signature to be explicitly unsafe, making the API contract clear about its potential dangers (RustSec Advisory).

Recursos adicionales


FuenteEste informe se generó utilizando IA

Relacionado Rust Vulnerabilidades:

CVE ID

Severidad

Puntuación

Tecnologías

Nombre del componente

Exploit de CISA KEV

Tiene arreglo

Fecha de publicación

GHSA-wwxp-hxh6-8gf8HIGH7.3
  • RustRust
  • binary_vec_io
NoNoOct 22, 2025
GHSA-x77x-7mmh-cxv3MEDIUM5.5
  • RustRust
  • ncurses
NoNoOct 22, 2025
GHSA-xcpm-76hf-c9ccLOW2
  • RustRust
  • borrowck_sacrifices
NoOct 22, 2025
GHSA-fp5x-7m4q-449fLOW2
  • RustRust
  • direct_ring_buffer
NoOct 21, 2025
GHSA-h5j3-crg5-8jqmLOW2
  • RustRust
  • orx-pinned-vec
NoOct 21, 2025

Evaluación gratuita de vulnerabilidades

Compare su postura de seguridad en la nube

Evalúe sus prácticas de seguridad en la nube en 9 dominios de seguridad para comparar su nivel de riesgo e identificar brechas en sus defensas.

Solicitar evaluación

Recursos adicionales de Wiz

Obtén una demostración personalizada

¿Listo para ver a Wiz en acción?

"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
David EstlickCISO
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
Adam FletcherJefe de Seguridad
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."
Greg PoniatowskiJefe de Gestión de Amenazas y Vulnerabilidades