Description
Rsync versions before 3.4.3 contain a time-of-check to time-of-use (TOCTOU) race condition in daemon file handling that allows attackers to redirect file writes outside intended directories by replacing parent directory components with symbolic links. Attackers with write access to a module path can exploit this race condition to create or overwrite arbitrary files, potentially modifying sensitive system files and achieving privilege escalation when the daemon runs with elevated privileges. This vulnerability can only be triggered if the chroot setting is false.
Problem types
Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
Any version before 3.4.3
Credits
Nullx3D (Batuhan SANCAK)
Michael Stapelberg
Damien Neil
References
github.com/...anges/8471fdd1561049ef5f58df44a1811a50bd9a531d
github.com/RsyncProject/rsync/releases/tag/v3.4.3
www.vulncheck.com/...lows-symlink-based-arbitrary-file-write