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.
Severity (CVSS)
| Base score | 5.8 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| RsyncProject | rsync | 0 to <=3.4.4; 3.5.0 |
References
Generated from the official CVE List on 14 Aug 2026 07:02 UTC.