CVE-2026-53796

rsync < 3.5.0 TOCTOU Race Condition via Destination Directory Handling

Published Aug 13, 2026 CVSS 4.0 · 5.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

rsync before version 3.5.0 contains a time‑of‑check to time‑of‑use race condition in the non‑daemon receiver’s destination directory handling. When an attacker can influence the parent components of the destination path, they can insert a symlink between the path resolution and the chdir() call, causing the receiver to change its working directory outside the intended destination tree. Subsequent relative‑path file writes are then directed to unintended filesystem locations, allowing overwriting or creation of arbitrary files on the target system.

Affected Systems

The vulnerability affects the rsync product from RsyncProject for all versions older than 3.5.0.

Risk and Exploitability

The CVSS score of 5.8 indicates moderate severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector requires an attacker who can control the destination path supplied to rsync, typically a user who can execute rsync commands on the target system or an attacker who can influence the destination during a remote transfer. The exploit would allow arbitrary file writes, potentially leading to data tampering or privilege escalation if executed with elevated rights.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade rsync to version 3.5.0 or later
  • Ensure that only trusted users can run rsync with arbitrary destination paths or enforce strict permissions on the destination directories
  • Use filesystem ACLs or directory ownership checks to prevent writes to unintended locations if an upgrade is not immediately possible

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4888-1 rsync security update
Debian DSA Debian DSA DSA-6527-1 rsync security update
History
Type Values Removed Values Added
First Time appeared Samba
Samba rsync
CPEs cpe:2.3:a:samba:rsync:*:*:*:*:*:*:*:*
Vendors & Products Samba
Samba rsync
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Rsync Project
Rsync Project rsync
Vendors & Products Rsync Project
Rsync Project rsync
Type Values Removed Values Added
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.
Title rsync < 3.5.0 TOCTOU Race Condition via Destination Directory Handling
Weaknesses CWE-367
CWE-59
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-367

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

  • CWE-59

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 14, 2026, 4:50 PM
Reserved
Jun 10, 2026, 8:14 PM
Status
Analyzed
Published
Aug 13, 2026, 3:19 PM
Modified
Nov 6, 2026, 4:00 PM