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.
Published: 2026-08-13
Score: 5.7 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a symlink race condition in rsync's --remove-source-files feature. During a transfer, an attacker can atomically replace a source file with a symlink pointing to an arbitrary target before rsync deletes the original. rsync then deletes the target file instead of the intended source file, granting attackers the ability to remove arbitrary files on the system that are accessible to the rsync process. This weakness matches CWE-367 and CWE-59 and results in loss of data integrity and availability.

Affected Systems

RsyncProject rsync versions prior to 3.5.0 are affected, including the 3.4.x series and earlier releases.

Risk and Exploitability

The vulnerability has a CVSS score of 5.7, indicating moderate severity. The EPSS score is not publicly available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to create symbolic links in the directory being synchronized, which typically means the attacker must have write or equivalent permissions to that location. If such access exists, the attacker can trigger the race condition with a single rsync invocation that uses the --remove-source-files option. The risk is therefore limited to environments where rsync is run with elevated privileges or where untrusted users can create files in the source directory.

Generated by OpenCVE AI on August 13, 2026 at 16:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade rsync to version 3.5.0 or later, where the race condition is fixed.
  • If an upgrade is not immediately possible, avoid using the --remove-source-files switch until a patched version is deployed.
  • Restrict write and symbolic‑link creation permissions for the user running rsync so that untrusted users cannot create symlinks in the source directories.

Generated by OpenCVE AI on August 13, 2026 at 16:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
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.
Title rsync < 3.5.0 Symlink Race Condition via --remove-source-files
Weaknesses CWE-367
CWE-59
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 5.7, '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-13T14:40:57.690Z

Reserved: 2026-06-10T20:14:32.828Z

Link: CVE-2026-53800

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T15:19:52.300

Modified: 2026-08-13T15:19:52.300

Link: CVE-2026-53800

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T17:00:04Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')