CVE-2026-53796
Received Received - Intake

TOCTOU Race Condition in rsync File Write Handling

Vulnerability report for CVE-2026-53796, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-367 The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
CWE-59 The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a time-of-check to time-of-use (TOCTOU) race condition in rsync versions before 3.5.0. It occurs in the non-daemon receiver's handling of destination directories. An attacker can manipulate parent components of the destination path by replacing a symlink between path resolution and the chdir() call. This redirects the receiver's working directory outside the intended destination tree, causing subsequent file writes using relative paths to land in unintended filesystem locations.

Detection Guidance

To detect this vulnerability, check the installed rsync version on your system. Run: rsync --version. If the version is below 3.5.0, the system is vulnerable. Additionally, monitor for unusual file writes or symlink manipulations in destination directories during rsync operations.

Impact Analysis

This vulnerability allows attackers to write files to unintended locations on your system. If you use rsync in non-daemon mode with versions before 3.5.0, an attacker with local access could exploit this to overwrite sensitive files, escalate privileges, or disrupt system operations by redirecting file writes outside the intended directory.

Mitigation Strategies

Upgrade rsync to version 3.5.0 or later immediately. If upgrading is not possible, avoid using rsync in non-daemon mode for sensitive operations or restrict write permissions to prevent symlink attacks. Monitor filesystem changes closely.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-53796. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart