REDHAT-BUG-2515389: High severity rsync rsync vulnerability
rsync before 3.5.0 contains an arbitrary file write vulnerability that allows attackers to write files outside the intended destination tree by specifying an absolute path via --temp-dir or --link-dest options. The rename-confinement logic is bypassed when these options resolve to paths outside the destination tree, enabling attacker-controlled values to write files to arbitrary locations accessible to the rsync process.
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
Who is exposed to this issue?
Systems running rsync versions before 3.5.0 are exposed when rsync is invoked with attacker-controlled values for the --temp-dir or --link-dest options. The impact is limited to locations the rsync process has permission to write.
What does an attacker need to exploit it?
An attacker needs to be able to specify an absolute path through --temp-dir or --link-dest. If that path resolves outside the intended destination tree, the rename-confinement logic can be bypassed.
How can I determine whether an rsync invocation is affected?
Check whether the installed rsync version is earlier than 3.5.0 and whether scripts, services, or users can supply --temp-dir or --link-dest values. Invocations that permit absolute paths resolving outside the destination tree are affected.
What can be done if updating is not immediately possible?
Prevent untrusted users or inputs from controlling --temp-dir and --link-dest, and restrict these options to paths within the intended destination tree. Run rsync with only the filesystem permissions required for its intended destination.