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 package | Versions | Reported by |
|---|---|---|
| coreutils | Not specified | CVE List |
| coreutils (crates.io) | up to 0.8.0 | GitHub Advisory Database |
| uutils coreutils | Not specified | NVD |
All scores
| canonical | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H |
Classification
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
| https://github.com/uutils/coreutils/issues/10015 | exploit, issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-35364 | advisory | |
| https://github.com/uutils/coreutils | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35364 changed 2026-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m976-87wm-48fm changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-35364 changed 2026-10-26 | Public domain |