CVE-2026-53796rsync < 3.5.0 TOCTOU Race Condition via Destination Directory Handling
Description
rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the non-daemon receiver's destination directory handling that allows an attacker who can manipulate destination path parent components to redirect file writes to unintended locations. Attackers can substitute a symlink for a component of the destination path between the path resolution and chdir() call, causing the receiver's working directory to be established outside the intended destination tree so that subsequent relative-path file writes land in unintended filesystem locations.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| RsyncProject | rsync | ≤ 3.4.4, fixed 3.5.0 | |
| samba | rsync | ≤ 3.4.4 |
References and patches
- GitHub Security Advisory (GHSA-w75h-ccff-w53m) vendor-advisoryVendor Advisory
- rsync 3.5.0 Release Notes release-notesRelease Notes
- https://www.vulncheck.com/advisories/rsync-toctou-race-condition-via-destination-directory-handling third-party-advisoryThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:samba:rsync:*:*:*:*:*:*:*:*< 3.5.0