Rsync --safe-links Option Bypass Leading to Path Traversal Vulnerability

Vulnerability

A path traversal vulnerability has been identified in the rsync utility, specifically when the '--safe-links' option is used. The rsync client does not properly verify if a symbolic link destination from the server contains another symbolic link, allowing for traversal outside the intended directory. This flaw could lead to arbitrary file writes in unintended locations.

Impact

Exploitation of this vulnerability allows a malicious server to create symbolic links that bypass the client's link safety checks, potentially leading to unauthorized file writes outside of designated directories.

Reproduction

To reproduce this vulnerability, use an rsync client version 3.2.7 with the '--safe-links' option enabled. Connect to an rsync server that can send symbolic links pointing to other links, creating a chain that ultimately leads outside the intended directory. The client will follow the links, resulting in a path traversal and writing files in unauthorized locations.

Remediation

Users can update to rsync version 3.4.0, where this vulnerability has been patched. For Red Hat users, the update is available through the Red Hat Enterprise Linux 8 and 9 channels.

Added: Sep 1, 2025, 7:22 PM
Updated: Sep 1, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
8.1
impact
2.5
exploitability
7.4
remediation
7.7
relevance
0.0
threat
6.5
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.