CVE-2026-29518: Rsync < 3.4.3 TOCTOU Race Condition Allows Symlink-Based Arbitrary File Write

Published May 11, 2026
·
Updated

A flaw was found in rsync. An rsync daemon configured with "use chroot = no" is exposed to a time-of-check / time-of-use race on parent path components. A local attacker with write access to a module can replace a parent directory component with a symlink between the receiver's check and its open(), redirecting reads (basis-file disclosure) and writes (file overwrite) outside the module. Under elevated daemon privilege this allows privilege escalation. Default "use chroot = yes" is not exposed.

Other sources

Rsync < 3.4.3 TOCTOU Race Condition Allows Symlink-Based Arbitrary File Write

Microsoft

Rsync versions before 3.4.3 contain a time-of-check to time-of-use (TOCTOU) race condition in daemon file handling that allows attackers to redirect file writes outside intended directories by replacing parent directory components with symbolic links. Attackers with write access to a module path can exploit this race condition to create or overwrite arbitrary files, potentially modifying sensitive system files and achieving privilege escalation when the daemon runs with elevated privileges. This vulnerability can only be triggered if the chroot setting is false.

MITRE

Affected Software

4 affected componentsFixes available
rsync rsync<3.4.3
Microsoft azl3 rsync 3.4.1-2
Samba rsync<3.4.3
debian/rsync<=3.2.3-4+deb11u1, <=3.2.7-1+deb12u4, <=3.4.1+ds1-5+deb13u2
3.2.3-4+deb11u43.2.7-1+deb12u53.4.1+ds1-5+deb13u33.4.3+ds1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/rsync to a version that resolves this vulnerability.

    Fixed in 3.2.3-4+deb11u4Fixed in 3.2.7-1+deb12u5Fixed in 3.4.1+ds1-5+deb13u3Fixed in 3.4.3+ds1-2
  2. Upgrade

    Upgrade rsync to a version that resolves this vulnerability.

    Fixed in 3.4.3
  3. Configuration

    Set the rsync daemon configuration option "use chroot" to true (yes). The described TOCTOU symlink-based arbitrary file write is only triggerable when "use chroot" is false.

    rsync daemon use chroot = yes
  4. Compensating control

    Ensure rsync daemon module paths are not writable by untrusted users; otherwise an attacker with write access to a module path can exploit the race condition to create/overwrite arbitrary files.

Event History

May 11, 2026
Data Sourced
via Red Hat·01:53 PM
DescriptionSeverityAffected Software
May 20, 2026
CVE Published
via MITRE·12:48 PM
Data Sourced
via MITRE·12:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 21, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
Jun 1, 2026
Data Sourced
via Debian·11:32 AM
DescriptionAffected Software
Data Sourced
via Launchpad·11:32 AM
Description
Jun 2, 2026
Data Sourced
via Ubuntu·11:33 AM
RemedyDescriptionSeverityAffected Software
Aug 5, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-29518?

The severity of CVE-2026-29518 is high with a score of 7.3.

2

How do I fix CVE-2026-29518?

To fix CVE-2026-29518, upgrade Rsync to version 3.4.3 or later.

3

What type of vulnerability is CVE-2026-29518?

CVE-2026-29518 is a race condition vulnerability that occurs due to a TOCTOU issue.

4

What software is affected by CVE-2026-29518?

Rsync versions before 3.4.3, including Debian/Rsync and Samba rsync, are affected by CVE-2026-29518.

5

What kind of attack can CVE-2026-29518 enable?

CVE-2026-29518 allows attackers to perform symlink-based arbitrary file writes to unintended directories.

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