All vulnerabilities

Servers and applications

CVE-2026-53800

rsync: --remove-source-files unlink follows a parent-component symlink race -> file deletion outside the source tree

Severity
Medium 5.7
Published
13 Aug 2026
Last changed
24 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.5.0
Exploit chance
0.1% in the next 30 daysHigher than 3% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Link following (CWE-59)Time-of-check time-of-use race condition (CWE-367)
Attack
Needs local access · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-v3vw-pvpg-chwh
Sources
NVD, Project advisories (GitHub)

Description

With --remove-source-files the sender unlinks each source file once it has been transferred. successful_send() resolved that unlink (and its same-file safety re-stat) by path -- a plain do_stat/do_lstat and do_unlink on the name, relative to the process CWD that change_pathname() had chdir'd into (so on Cygwin, where the CWD is re-resolved by name, even the chdir'd anchor was path-based). An unprivileged user who controls a component of the source tree races a parent directory from a real directory to a symlink->outside AFTER the file was scanned/sent, so the post-send unlink is redirected and the sender deletes a file OUTSIDE the served module / source tree.

Reachable two ways: a client pulling from a daemon module with refuse options not blocking --remove-source-files (the daemon, possibly running as root, does the delete), and a higher-authority local sender -- the canonical case rsync --remove-source-files -a /src/ remote: run by root over a tree with an attacker-controlled…

From RsyncProject/rsync's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
rsyncServers and applications · cpe:a:samba:rsync
  • Every version before 3.5.0
rsyncServers and applications · github:rsyncproject/rsync
  • Every version before 3.5.0

About rsync

file synchronization protocol and software

From Wikidata, CC0 1.0.
GitHub stars
5,367GitHub, 15 Nov 2026
Forks
631GitHub, 15 Nov 2026
Latest release
v3.5.2GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
Developer
Andrew TridgellWikidata
Written in
CWikidata
First released
19 Jun 1996Wikidata
First published on GitHub
25 May 2020GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-53800
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-53800
  • GitHub Advisory Database https://github.com/advisories/GHSA-v3vw-pvpg-chwh
  • github.com https://github.com/RsyncProject/rsync/security/advisories/GHSA-v3vw-pvpg-chwh