CVE-2026-53796
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| RsyncProject | rsync | 0 <= 3.4.4 | affected |
| RsyncProject | rsync | 3.5.0 | unaffected |
Weaknesses
- CWE-59: CWE-59 Improper Link Resolution Before File Access ('Link Following')
- CWE-367: CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
- https://github.com/RsyncProject/rsync/security/advisories/GHSA-w75h-ccff-w53m
- https://github.com/RsyncProject/rsync/releases/tag/v3.5.0
- https://www.vulncheck.com/advisories/rsync-toctou-race-condition-via-destination-directory-handling
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.