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
Fuente: Este informe se generó utilizando IA
Relacionado Rust Vulnerabilidades:
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.
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."
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."