GHSA-h5j3-crg5-8jqm
Rust Análisis y mitigación de vulnerabilidades

Vista general

The vulnerability (GHSA-h5j3-crg5-8jqm) affects the orx-pinned-vec Rust package, specifically in versions prior to 3.21.0. The issue was discovered and reported on October 1, 2025, and officially published to the GitHub Advisory Database on October 21, 2025. The vulnerability involves undefined behavior in the safe function index_of_ptr when called with empty slices, which could lead to memory corruption (GitHub Advisory, RustSec Advisory).

Técnicas

The vulnerability occurs in the index_of_ptr function when processing empty slices. The critical issue lies in the line ptr.add(slice.len() - 1) which underflows when slice.len() is 0, resulting in a pointer with a massive offset. According to Rust's safety rules, creating such a pointer causes immediate undefined behavior. The vulnerability has been assigned a Low severity rating with a CVSS score of 2.0, and is associated with CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-191 (Integer Underflow) (GitHub Advisory).

Impacto

The vulnerability can lead to undefined behavior in the Rust program, potentially causing memory corruption issues. While the severity is rated as Low, the undefined behavior violates Rust's core safety guarantees, as a safe function should not cause undefined behavior with any input (GitHub Issue).

Mitigación y soluciones alternativas

The vulnerability has been fixed in version 3.21.0 of orx-pinned-vec. The fix includes a refactoring of the index_of_ptr method, simplifying the implementation using standard methods such as slice.as_ptr_range() and ptr.offset_from. The fix makes the use of unsafe blocks more clear and better documented (GitHub PR).

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