6.6medium
uutils coreutils mv Denial of Service and Data Duplication via Improper Symlink Expansion
- Severity
- 6.6medium CVSS:3.1 by canonical
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
- Also known as
- GHSA-h444-6j9x-p8vh
Description
The mv utility in uutils coreutils improperly handles directory trees containing symbolic links during moves across filesystem boundaries. Instead of preserving symlinks, the implementation expands them, copying the linked targets as real files or directories at the destination. This can lead to resource exhaustion (disk space or time) if symlinks point to large external directories, unexpected duplication of sensitive data into unintended locations, or infinite recursion and repeated copying in the presence of symlink loops.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| coreutils | before 0.7.0 | CVE List |
| uu_mv (crates.io) | before 0.7.0 | GitHub Advisory Database |
| uutils coreutils | before 0.7.0 | NVD |
All scores
| canonical | 6.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
| GitHub | 6.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
Classification
What each source says
CVE List
The mv utility in uutils coreutils improperly handles directory trees containing symbolic links during moves across filesystem boundaries. Instead of preserving symlinks, the implementation expands them, copying the linked targets as real files or directories at the destination. This can lead to resource exhaustion (disk space or time) if symlinks point to large external directories, unexpected duplication of sensitive data into unintended locations, or infinite recursion and repeated copying in the presence of symlink loops.
GitHub Advisory Database
When moving directories across filesystems, uutils mv dereferences symlinks inside the tree, copying their targets as real files/dirs instead of preserving the symlinks. GNU preserves symlinks by default. E.g. a etc_link -> /etc inside the source becomes a full copy of /etc at the destination.
Impact: (1) resource exhaustion — a small tree can expand into a huge copy (time/disk DoS); (2) unintended duplication of sensitive paths referenced by symlink; (3) symlink-loop amplification causing deep recursion. Recommendation: in cross-device fallback, detect symlinks via symlink_metadata() and recreate with read_link()/symlink(); add loop detection.
Remediation: Acknowledged by Canonical; fixed in commit 9654e4ab.
Reported by Zellic in the uutils coreutils Program Security Assessment (prepared for Canonical, Jan 20 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242. Finding 3.63. Credit: Zellic.
NVD (es)
La utilidad mv en uutils coreutils maneja incorrectamente los árboles de directorios que contienen enlaces simbólicos durante movimientos a través de límites de sistemas de archivos. En lugar de preservar los enlaces simbólicos, la implementación los expande, copiando los destinos enlazados como archivos o directorios reales en el destino. Esto puede llevar al agotamiento de recursos (espacio en disco o tiempo) si los enlaces simbólicos apuntan a directorios externos grandes, a la duplicación inesperada de datos sensibles en ubicaciones no deseadas, o a una recursión infinita y copia repetida en presencia de bucles de enlaces simbólicos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35365 changed 2026-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h444-6j9x-p8vh changed 2026-07-06 | CC-BY-4.0 |
| NVD | CVE-2026-35365 changed 2026-10-26 | Public domain |