llamaCVEVulnerability Intelligence
/
Advisory · GitHub · crates.io · coreutils

GHSA-7XFQ-P2XF-2PGW

rm -r: --preserve-root bypassed for a bind mount of "/"

Parche disponible
Descargar PNG JSON
CVSS 3.1
6.6
Media
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -49 d de la divulgación
Exposición16 dDesde la divulgación, 5 nov 2026, 2:35 a. m.
Detección15 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Paso a paso, como subiendo al Cotopaxi.Mi diagnóstico: un ticket y una sonrisa.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 0.12.0
Monitoreo
Detectada +1
17 sept 26
5 nov 26
21 nov 26
17 sept 26
3 oct 26
19 oct 26
5 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.12.0 coreutils · -49 d desde divulgación
Divulgación Publicada GHSA-7XFQ-P2XF-2PGW divulgada · CVSS 6.6 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

uutils `rm -r` decides "is this the root filesystem?" with a string identity test: only a literal `/` or a path whose `canonicalize()` result equals `/` is protected. A bind mount of `/` is a real directory (not a symlink, no cycle), so it shares `st_dev`/`st_ino` with `/` yet `canonicalize()` returns the mountpoint path itself, the check never matches, and `--preserve-root` (on by default) is silently bypassed.

The bind mount capability is not trivial. But I find there is an explicit `Privilege-boundary violations` section in SECURITY.md, which should make the issue in scope of report.

### Details
the line numbers are based on commit `1a367403`. But I've checked the tag `0.10.0` version and the logic is similar.
- `src/uu/rm/src/rm.rs:761-773` `is_root_path`: only tests whether the path is literally `/` or canonicalizes to `/`.

PoC
mount --bind / /tmp/rootcopy
rm -r /tmp/rootcopy  

Tested on a ubuntu server. The former `rm` is default GNU one. The later `/home/ubuntu/rm` is compiled from the repo.

root@VM-0-5-ubuntu:~# mount --bind / /tmp/rootcopy
root@VM-0-5-ubuntu:~# rm -r /tmp/rootcopy/
rm: it is dangerous to operate recursively on '/ tmp/rootcopy/' (same as "/')
rm: use --no-preserve-root to override this failsafe 
root@VM-0-5-ubuntu:~# /home/ubuntu/rm -r /tmp/rootcopy/
rm: cannot remove '/tmp/rootcopy/dev': Device or resource busy 
rm: cannot remove '/tmp/rootcopy/tmp/rootcopy': Device or resource busy 
rm: remove write-protected regular file '/tmp/rootcopy/etc/machine-id'? ^C 
bash: history: /root/ bash_history: cannot create: No such file or directory

### Impact
Bypass of a documented safety guard leading to destructive operation

### Credit
SecBuddyF - Tencent KeenLab (@KeenSecurityLab https://github.com/KeenSecurityLab)

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
5.3/ 10Medio
Vector 5.3 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
coreutils≤ 0.11.0
0.11.0
0.12.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iocoreutils
Corregida 0.12.0 -49 d 0.12.0 no afectada
Versiones corregidas0.12.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/uutils/coreutils/security/advisories/GHSA-7xfq-p2xf-2pgw

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.