REDHAT-BUG-2515381: High severity rsync rsync vulnerability
rsync before 3.5.0 contains a symlink following vulnerability that allows local attackers to overwrite arbitrary files by placing a symlink at a predictable output path such as --log-file, --write-batch, or daemon-mode log and statistics paths. Attackers can exploit rsync's failure to reject symlinks during ancillary file writes to redirect output to arbitrary filesystem locations, achieving local privilege escalation on installations where rsync runs with elevated privileges such as setuid or privileged daemon configurations.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rsyncto a version that resolves this vulnerability.Fixed in 3.5.0
Event History
Frequently Asked Questions
Which rsync deployments are most exposed to privilege escalation?
Installations where rsync runs with elevated privileges are exposed, including setuid deployments and privileged daemon configurations. The issue is local, so an attacker needs the ability to place a symlink at a predictable ancillary-output path.
What attacker-controlled conditions are needed to exploit this issue?
The attacker must be able to create a symlink at a predictable path used for ancillary file output. Examples include paths selected through --log-file or --write-batch, as well as daemon-mode log and statistics paths; rsync may then follow the symlink and overwrite the target file.
How can administrators identify potentially affected configurations?
Review whether rsync is older than 3.5.0 and whether it is executed with elevated privileges. Also inspect uses of --log-file, --write-batch, and daemon-mode logging or statistics output for predictable locations where untrusted local users could place symlinks.
What mitigation is available if an update cannot be applied immediately?
Avoid running rsync with elevated privileges where possible, and prevent untrusted local users from creating symlinks in directories used for log, batch, statistics, or other ancillary rsync output. Use output paths that are not writable or controllable by untrusted users.