Description

rsync before 3.5.0 contains a symlink race condition vulnerability in the --remove-source-files feature that allows attackers with symlink creation access to cause arbitrary file deletion. Attackers can atomically substitute a symlink for a source file between transfer completion and the unlink() call, causing rsync to delete the symlink target rather than the intended source file.

Severity (CVSS)

Base score5.7
SeverityMedium
VersionCVSS 4.0
VectorCVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Provided byCNA

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

VendorProductVersions
RsyncProjectrsync0 to <=3.4.4; 3.5.0

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 14 Aug 2026 07:02 UTC.