REDHAT-BUG-2515368: Path Traversal
rsync 2.3.3 before 3.5.0 contains a path traversal vulnerability that allows a malicious sender to escape the module root by exploiting symlinks within the module file tree when using --partial-dir or --backup-dir options. Attackers with write access to place a symlink under the module root, or who can exploit a pre-existing trusted symlink, can direct file writes to locations outside the intended module root, achieving arbitrary file write relative to the module root parent.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Rsync deployments using versions before 3.5.0 are exposed when they use --partial-dir or --backup-dir and a malicious sender can place a symlink under the module root. Deployments may also be exposed if an attacker can leverage a pre-existing trusted symlink in that tree.
What does an attacker need to exploit it?
The attacker needs the ability to write or otherwise act as a malicious sender against the rsync module, plus a symlink under the module root that can be used to redirect writes. The vulnerable operation must use either --partial-dir or --backup-dir.
What is the impact of successful exploitation?
Successful exploitation can cause writes outside the intended module root by traversing through symlinks. This provides arbitrary file write relative to the module root's parent directory.
What can be done while patching is not immediately possible?
Avoid using --partial-dir and --backup-dir for affected rsync operations. Restrict untrusted users from writing symlinks beneath the module root and review existing symlinks in that tree.