JLSEC-2026-1418: 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
julia/rsync_jllto a version that resolves this vulnerability.Fixed in 3.5.0+0 - 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?
Receivers running rsync versions before 3.5.0 are exposed when they accept content from a malicious sender using --relative mode. Exploitation requires the sender to be able to supply crafted relative paths containing symlink components.
What can an attacker do if exploitation succeeds?
A malicious sender can cause files to be written outside the intended destination directory tree. This can result in arbitrary file writes on the receiver's filesystem, affecting integrity and availability.
Is this exploitable without access to send rsync content?
No. The described attack requires a malicious sender and low-privilege access to provide the crafted paths; it does not require user interaction.
What version addresses the vulnerability?
The issue affects rsync before 3.5.0. Updating to rsync 3.5.0 or later addresses the affected version range described here.