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

GHSA-6C4J-6PGG-XGG8

uutils mv cross-device fallback retains setuid/setgid bits when ownership cannot be preserved

Parche disponible
Descargar PNG JSON
CVSS 3.1
3.3
Baja
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -39 d de la divulgación
Exposición68 dDesde la divulgación, 13 sept 2026, 4:03 p. m.
Detección68 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.
Ni un SIEM paranoico alertaría por esto.Hoy la lana está en calma y tú también.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 0.10.0
Monitoreo
Detectada +1
5 ago 26
13 sept 26
21 nov 26
5 ago 26
1 sept 26
28 sept 26
25 oct 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.10.0 coreutils · -39 d desde divulgación
Divulgación Publicada GHSA-6C4J-6PGG-XGG8 divulgada · CVSS 3.3 (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

`mv` in uutils/coreutils can retain setuid/setgid bits on the destination during the cross-device single-file fallback. When `rename(2)` returns `EXDEV`, uutils falls back to copy+ownership+permissions logic. The fallback attempts to preserve ownership best-effort, ignores failure, and then applies the full source mode including `04000`/`02000`.

For an unprivileged user moving a readable root-owned setuid/setgid file across a filesystem boundary, ownership cannot be preserved, so the destination remains owned by the moving user. uutils still applies the full source mode, leaving a mover-owned destination with setuid/setgid bits retained. GNU `mv` and fixed uutils `cp` strip these bits when ownership cannot be preserved.

Details

Affected component:

src/uu/mv/src/mv.rs::rename_file_fallback()

Vulnerable behavior:

let _ = preserve_ownership(from, to);
let _ = dst_file.set_permissions(Permissions::from_mode(src_mode));

`src_mode` includes `0o6000`. `preserve_ownership()` can fail for an unprivileged mover, but the code does not track that failure before applying the final mode.

Sibling differential:

  • uutils `cp` already strips `setuid|setgid` when ownership could not be preserved;
  • GNU `mv` strips the same bits in this scenario;
  • uutils `mv` does not.

PoC

See `poc_mv_setuid.sh` and `POC_RUN_LOG.txt`.

The PoC performs cross-device single-file moves as an unprivileged user. The vulnerable binary retains `4755`, `2755`, and `6755` on the user-owned destination. GNU `mv` and the patched negative control strip those bits to `0755`.

Impact

Bounded local improper permission preservation. This is not a direct privilege escalation, because the destination remains owned by the mover; however, it violates the expected safety rule that setuid/setgid bits should not survive when ownership was not preserved. It can break local security-policy and audit invariants, especially in privileged backup, migration, packaging, or staging workflows.

Fix

Fixed by `37b1d11d0f56b48f912ad6336a28c98601dd95a1` https://github.com/uutils/coreutils/commit/37b1d11d0f56b48f912ad6336a28c98601dd95a1
("mv: strip setuid/setgid when the cross-device copy cannot preserve ownership"),
PR #13675 https://github.com/uutils/coreutils/pull/13675, merged 2026-08-03.

First released in 0.10.0; `<= 0.9.0` is affected.

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:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
6.4/ 10Medio
Vector 6.4 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

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

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iocoreutils
Corregida 0.10.0 -39 d 0.12.0 no afectada
Versiones corregidas0.10.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-6c4j-6pgg-xgg8

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