REDHAT-BUG-2515417: Path Traversal
rsync before 3.5.0 contains a path traversal vulnerability that allows a malicious sender to write files outside the intended destination directory tree by crafting relative paths with symlink components in --relative mode. The makepath() function follows symlinks pointing outside the destination tree while creating intermediate directories without verifying that created paths remain within the destination boundary, enabling arbitrary file writes on the receiver's filesystem.
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 exposed to this issue?
Receivers running rsync before 3.5.0 are exposed when they use --relative mode and process files from a malicious sender. The issue depends on symlink components that point outside the intended destination tree.
What does an attacker need to exploit it?
An attacker needs to act as the rsync sender and supply crafted relative paths containing symlink components. This can cause the receiver to create or write files outside the intended destination directory tree.