Sceawere

Vulnerability Detail

CVE-2026-53796UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

Rsync Destination Directory TOCTOU Vulnerability

Vulnerability Metadata

Severity
Medium
Score / CVSS
6.3
Creation Date
6h ago
Vendor
RsyncProject
Product
rsync
Attack Type
CWE-59 Improper Link Resolution Before File Access ('Link Following')
Vector String
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Attack Complexity
HIGH

Narrative and Response

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.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "6.3",
  "pubDate": "2026-08-13T15:19:51.553Z",
  "pubdate": "2026-08-13T15:19:51.553Z",
  "executiveSummary": "A time-of-check to time-of-use (TOCTOU) race condition vulnerability exists in rsync before 3.5.0 within the non-daemon receiver's destination directory handling mechanism.\nThe vulnerability allows an attacker capable of manipulating destination path parent components to redirect file writes to unintended filesystem locations.\nThe flaw affects rsync versions before 3.5.0, specifically impacting the non-daemon receiver mode during file synchronization operations.\nRisk implications include unauthorized file writes, potential data corruption, and unauthorized file overwrite outside the intended destination tree.\nAttacker capabilities require the ability to manipulate destination path parent components and execute a race condition timing attack.\nExploitation requirements depend on successfully winning the race condition between path resolution and the execution of the chdir() call.",
  "technicalDetails": "The root cause of the vulnerability is a time-of-check to time-of-use (TOCTOU) race condition residing in the non-daemon receiver's destination directory handling logic.\nThe vulnerable component is the destination path resolution and working directory establishment routine utilizing the chdir() call.\nAffected versions include all rsync deployments prior to version 3.5.0.\nExploitation occurs when an attacker substitutes a symbolic link for a component of the destination path during the window between path resolution (the check) and the actual chdir() call (the use).\nThe attack flow proceeds as follows: First, the rsync receiver resolves the intended destination path. Second, before the receiver executes the chdir() call to establish its working directory, the attacker replaces a parent component of the destination path with a symlink pointing to an arbitrary filesystem location.\nThird, the receiver executes the chdir() call, inadvertently establishing its working directory outside the intended destination tree due to the substituted symlink.\nFinally, subsequent relative-path file writes performed by the rsync receiver land in unintended filesystem locations determined by the attacker-controlled symlink.\nAuthentication requirements, privilege requirements, and network exposure depend entirely on the local or remote execution context of the non-daemon receiver invocation.\nPost-exploitation impact involves unauthorized file creation, modification, or overwriting of system files depending on the execution privileges of the rsync receiver process."
}
CVE-2026-53796: Rsync Destination Directory TOCTOU Vulnerability (MEDIUM Severity, CVSS: 6.3) - Sceawere