REDHAT-BUG-2515384: Path Traversal
rsync before 3.5.0 contains a path traversal vulnerability that allows remote clients to access files outside the intended module root when use chroot is disabled and the module root path or a component of it is a symlink. The daemon calls chdir() to the module root at session initialization without resolving symlinks via realpath() or equivalent, causing subsequent relative-path operations to reference files relative to the symlink target rather than the intended module root, enabling unauthorized file access.
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?
Exposure applies to rsync daemon modules running versions before 3.5.0 when use chroot is disabled and the configured module root, or any component in its path, is a symlink. Remote clients of those modules may be able to access files outside the intended module root.
What must an attacker be able to do?
The attacker needs remote client access to an affected rsync daemon module. The issue is tied to relative-path operations after the daemon changes into a module root path that resolves through a symlink.
What can be done if an update is not immediately available?
Enable use chroot for affected modules and ensure that module root paths and their path components are not symlinks. These conditions remove the configuration circumstances described for the vulnerability.
How can I identify potentially affected modules?
Review rsync daemon module configuration for use chroot being disabled, then inspect each configured module root and every directory component in its path for symlinks. Modules meeting both conditions should be treated as potentially affected if rsync is earlier than 3.5.0.