JLSEC-2026-1416: Race Condition
rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the rrsync restricted shell wrapper that allows authenticated clients to escape enforced directory restrictions by substituting a symlink for a path component after validation but before transfer processing. Attackers can additionally leverage unrestricted flags such as --copy-unsafe-links, -D, and --log-file through rrsync to read or write files outside the permitted directory subtree.
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 to a fixed release to a version that resolves this vulnerability.
Fixed in 3.5.0
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments that use the rrsync restricted shell wrapper and allow authenticated rsync clients are exposed. The issue affects rsync versions before 3.5.0.
What does an attacker need to exploit it?
An attacker needs authenticated access as an rsync client to an rrsync-protected service. No user interaction is required, and the attack can be performed over the network.
Are directory restrictions sufficient protection?
No. An authenticated client can replace a validated path component with a symlink before transfer processing, escaping the enforced directory subtree. Unrestricted rrsync flags including --copy-unsafe-links, -D, and --log-file can also be used to read or write files outside that subtree.
What should be done if an immediate upgrade is not possible?
The provided data does not specify a complete workaround. Reduce exposure by limiting authenticated rsync access and avoiding rrsync configurations that permit the listed unrestricted flags.