Medium, CVSS 6.6crates.ioPublished
mv: symlinks expanded during cross-device move (resource exhaustion / data duplication)
CVE-2026-35365 · GHSA-h444-6j9x-p8vh
- Affected
- crates.io uu_mv < 0.7.0
- Fixed in
- 0.7.0· Vendor fix available
- Issue
- 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 etclink - /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 symlinkmetadata() and recreate with readlink()/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.
Recommended action: Upgrade to 0.7.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.