CVE-2026-53796 PUBLISHED

rsync < 3.5.0 TOCTOU Race Condition via Destination Directory Handling

Assigner: VulnCheck
Reserved: 10.06.2026 Published: 13.08.2026 Updated: 13.08.2026

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.

Metrics

CVSS 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
CVSS Score: 5.8

Product Status

Vendor RsyncProject
Product rsync
Versions Default: unaffected
  • affected from 0 to 3.4.4 (incl.)
  • Version 3.5.0 is unaffected

Credits

  • seks99x finder

References

Problem Types

  • CWE-59 Improper Link Resolution Before File Access ('Link Following') CWE
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition CWE