CVE-2026-35364
JSON

6.3medium

uutils coreutils mv Arbitrary File Overwrite via Cross-Device TOCTOU Race Condition

Severity
6.3medium CVSS:3.1 by canonical
Exploit likelihood
0.09% (higher than 0% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
canonical
Also known as
GHSA-m976-87wm-48fm

Description

A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cross-device operations. The utility removes the destination path before recreating it through a copy operation. A local attacker with write access to the destination directory can exploit this window to replace the destination with a symbolic link. The subsequent privileged move operation will follow the symlink, allowing the attacker to redirect the write and overwrite an arbitrary target file with contents from the source.

Affected

Product or packageVersionsReported by
coreutilsNot specifiedCVE List
coreutils (crates.io)up to 0.8.0GitHub Advisory Database
uutils coreutilsNot specifiedNVD

All scores

canonical6.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
GitHub6.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-367

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cross-device operations. The utility removes the destination path before recreating it through a copy operation. A local attacker with write access to the destination directory can exploit this window to replace the destination with a symbolic link. The subsequent privileged move operation will follow the symlink, allowing the attacker to redirect the write and overwrite an arbitrary target file with contents from the source.

NVD (es)

Una condición de carrera de Tiempo de Verificación a Tiempo de Uso (TOCTOU) existe en la utilidad mv de uutils coreutils durante operaciones entre dispositivos. La utilidad elimina la ruta de destino antes de recrearla mediante una operación de copia. Un atacante local con acceso de escritura al directorio de destino puede explotar esta ventana para reemplazar el destino con un enlace simbólico. La operación de movimiento privilegiada subsiguiente seguirá el enlace simbólico, permitiendo al atacante redirigir la escritura y sobrescribir un archivo de destino arbitrario con el contenido de la fuente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-35364 changed 2026-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-m976-87wm-48fm changed 2026-09-10CC-BY-4.0
NVDCVE-2026-35364 changed 2026-10-26Public domain