REDHAT-BUG-2515419: Race Condition

Published Aug 13, 2026
·
Updated

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

1 affected component
rsync rsync<3.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rsync to a version that resolves this vulnerability.

    Fixed in 3.5.0
  2. Configuration

    Disable or restrict the unrestricted rrsync flags --copy-unsafe-links, -D, and --log-file to prevent reads or writes outside the permitted directory subtree.

    rrsync --copy-unsafe-links, -D, --log-file = disabled

Event History

Aug 13, 2026
Data Sourced
via Red Hat·03:51 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments that use the rrsync restricted shell wrapper and allow authenticated rsync clients to access a restricted directory subtree are exposed. The issue affects rsync versions before 3.5.0.

2

What does an attacker need to exploit the vulnerability?

An attacker needs authenticated access as an rsync client through rrsync. They must be able to substitute a symlink for a path component after rrsync validates the path and before transfer processing occurs.

3

What could an attacker do after exploiting it?

An attacker may escape the directory restrictions enforced by rrsync and read or write files outside the permitted subtree. Unrestricted options including --copy-unsafe-links, -D, and --log-file can also be leveraged through rrsync.

4

What should be prioritized for remediation?

Update rsync to version 3.5.0 or later. If immediate patching is not possible, prioritize systems where authenticated users can invoke rrsync and where writable paths could be used to replace path components with symlinks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203