JLSEC-2026-1432: Race Condition
rsync before 3.5.0 contains a symlink race condition vulnerability in the --remove-source-files feature that allows attackers with symlink creation access to cause arbitrary file deletion. Attackers can atomically substitute a symlink for a source file between transfer completion and the unlink() call, causing rsync to delete the symlink target rather than the intended source file.
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
What conditions are required to exploit this issue?
An attacker needs local access, low-level privileges, and the ability to create symlinks in the relevant source-file location. The vulnerable rsync invocation must use --remove-source-files, and the attacker must win the race by replacing a source file with a symlink after transfer completion but before rsync calls unlink().
Are rsync operations unaffected if they do not use --remove-source-files?
The described deletion race is specifically in the --remove-source-files feature. The provided information does not indicate that rsync transfers without that option are affected by this issue.
What is the impact of a successful race?
A successful attacker can cause rsync to delete an arbitrary file targeted by the substituted symlink. The supplied severity vector indicates availability impact only, with no stated confidentiality or integrity impact.
What version fixes the issue?
The issue affects rsync versions before 3.5.0. Updating to rsync 3.5.0 or later addresses the affected version range.
What can be done if an update cannot be applied immediately?
Avoid using --remove-source-files where untrusted users can create or replace symlinks in the source directory. Restrict symlink creation access in directories processed by such rsync jobs.