Skip to content
Threat Feed
high advisory

Arbitrary File Write Vulnerability in rsync

Rsync versions prior to 3.5.0 contain an arbitrary file write vulnerability that allows attackers to bypass path confinement by providing absolute paths to specific command-line options.

CVE search metadata

CVE search record: CVE-2026-53795. Severity: high. CVSS: 8.1. KEV: no. Product: rsync. Brief: Arbitrary File Write Vulnerability in rsync. Brief link: https://feed.craftedsignal.io/briefs/2026-08-rsync-file-write/

What's new

  • 1. added coverage for rsync Aug 13, 15:39 via nvd
  • 2. added coverage for rsync Aug 13, 15:39 via nvd
  • 3. added coverage for rsync Aug 13, 15:39 via nvd
  • 4. added coverage for rsync Aug 13, 15:39 via nvd

Rsync versions prior to 3.5.0 are vulnerable to an arbitrary file write vulnerability (CVE-2026-53795) caused by improper handling of absolute paths. When an attacker provides absolute paths via the --temp-dir or --link-dest command-line options, the application fails to correctly apply rename-confinement logic. This failure permits the rsync process to write files to locations outside the intended destination directory, provided those locations are writable by the user executing the rsync process. This vulnerability poses a significant risk to systems that process untrusted rsync inputs or automated synchronization tasks, as it could be leveraged to overwrite sensitive configuration files or inject malicious binaries, potentially leading to privilege escalation or system compromise.

Attack Chain

  1. Attacker identifies an automated system or user process executing rsync with user-controllable arguments.
  2. Attacker crafts a malicious rsync command that includes the --temp-dir or --link-dest options.
  3. Attacker specifies an absolute path for these options that targets a directory outside the intended scope.
  4. The rsync process initiates, processing the supplied malicious path parameters.
  5. The application fails to validate the absolute path against the destination tree restrictions.
  6. The rename-confinement check is bypassed due to logic flaws in path resolution.
  7. The rsync process writes a file to the attacker-defined absolute path location.
  8. The attacker achieves unauthorized file creation or modification on the target system.

Impact

Successful exploitation allows for the unauthorized creation or modification of files anywhere on the local filesystem that the rsync process has permissions to access. This can result in system instability, the injection of malicious scripts into cron jobs, or the overwriting of SSH authorized_keys, ultimately leading to full system compromise or persistence for the attacker.

Recommendation

  • Update rsync to version 3.5.0 or later on all systems to remediate CVE-2026-53795.
  • Audit scripts and automation pipelines for rsync commands that utilize --temp-dir or --link-dest flags with untrusted input.
  • Restrict the permissions of the user accounts executing rsync to the minimum necessary directory access to limit the potential impact of an arbitrary file write.

Immediate actions

Patch rsync to 3.5.0 on all internet-facing or multi-user systems.

IT Operations 48h

Mitigations

Identify and audit scripts using rsync --temp-dir or --link-dest flags.

immediate Security Operations

CVE-2026-53795