Back to Intelligence

USN-9222-1: rsync CVE-2026-53783, CVE-2026-53784, CVE-2026-53785 — Path Traversal and Sandbox Escape Detection & Remediation Guide

SA
Security Arsenal Team
November 30, 2026
12 min read

Ubuntu has published security notice USN-9222-1 addressing three vulnerabilities in rsync — one of the most widely deployed file-synchronization and backup tools in Linux environments. The flaws are not theoretical protocol weaknesses; they are concrete primitives that an authenticated attacker can use to escape enforced directory restrictions and read or write files outside the intended module or destination tree. Given that rsync routinely sits at the heart of backup pipelines, mirror infrastructure, CI/CD artifact distribution, and disaster-recovery workflows, the blast radius here is significant.

The three CVEs:

  • CVE-2026-53783 — A time-of-check to time-of-use (TOCTOU) race condition in the rrsync restricted-shell wrapper. An authenticated attacker can exploit the race to escape the enforced directory restrictions that rrsync is supposed to impose.
  • CVE-2026-53784 — A path traversal vulnerability that triggers when an rsync module's root path is a symlink and chroot is disabled. An authenticated attacker can access files outside the intended module root.
  • CVE-2026-53785 — A path traversal vulnerability in relative mode that allows a malicious sender to write files outside the intended destination directory tree — effectively arbitrary file write on the receiver's filesystem.

CVE-2026-53785 is the one that should keep you up at night. Arbitrary file write on the receiving side means an attacker who can push files to your rsync receiver can overwrite cron files, drop a unit file into systemd paths, tamper with authorized_keys, or poison application code — all classic privilege-escalation and persistence staging.

Why defenders need to act now

rsync's deployment profile makes this worse than a typical client-side bug:

  1. rsync daemons often run with elevated privileges. Backup servers and mirror hosts frequently run rsync as root or a dedicated service account with broad filesystem access — exactly the context an attacker wants when they land an arbitrary write primitive.
  2. rrsync is a trust boundary that just broke. The restricted wrapper exists specifically to let untrusted or semi-trusted parties push/pull against a confined directory. CVE-2026-53783 defeats that confinement.
  3. Backup infrastructure is a ransomware and wiper target. Compromising the backup tier is a standard play in destructive intrusions. A writable-path traversal on the backup receiver is a direct route to destroying or encrypting backup data before detonation.

If you expose rsync over TCP/873, use rrsync to gate third-party backup access, or run rsync receivers in automated pull jobs, treat this as a priority patch.

Technical Analysis

Affected products and platforms

The vulnerabilities affect the rsync package on Ubuntu systems covered by USN-9222-1. The notice applies to rsync as shipped in supported Ubuntu releases (including current LTS lines). Other distributions shipping the same upstream rsync code are likely affected by the same root causes; check your distribution's security tracker. Verify your installed version with dpkg -l rsync or apt policy rsync and compare against the fixed versions referenced in the Ubuntu notice.

CVE-2026-53783 — TOCTOU race in rrsync (restricted-shell escape)

rrsync is a wrapper script shipped with rsync that validates and rewrites client-supplied arguments so that a restricted SSH key (via command="rrsync ..." in authorized_keys) can only operate within a designated subdirectory. The vulnerability is a time-of-check/time-of-use race condition: rrsync validates a path, but the state of that path can change between validation and use — for example, via a symlink swap — causing the validated-safe path to resolve somewhere outside the enforced directory at execution time.

From a defender's perspective, the exploitation requirements matter:

  • The attacker needs authenticated access to the restricted account (e.g., an SSH key authorized for rrsync).
  • They need a way to win the race — typically rapid filesystem manipulation on the server side or control over path components.
  • The payoff is escape from the rrsync confinement, after which they operate against the broader filesystem with whatever privileges rsync runs under.

Any environment where third parties, tenants, or lower-trust internal teams are given rrsync-gated backup access should treat those keys as potentially compromised in their effective scope until patched.

CVE-2026-53784 — Symlink module root with chroot disabled

rsync's daemon mode (rsyncd) serves defined "modules," each rooted at a path on disk. This vulnerability is a path traversal that activates when the module root path is a symlink and use chroot = no is set for the module. In that configuration, rsync's canonicalization and containment checks can be bypassed, and an authenticated client can traverse out of the module root to read files elsewhere on the filesystem.

The key defensive insight: this is a configuration-dependent vulnerability. Audit /etc/rsyncd.conf (and any included module definitions) for:

  • Modules with use chroot = no (or relying on a default that resolves to no chroot)
  • Module path values that are symlinks — for example, /srv/backup symlinked to /mnt/data/backup

That combination — symlinked root + no chroot — is the trigger condition. Either fixing the patch level or removing the dangerous configuration mitigates the exposure.

CVE-2026-53785 — Relative-mode path traversal (arbitrary write on receiver)

This is the most dangerous of the three. In relative mode, the sender supplies paths that rsync interprets relative to the destination directory. The vulnerability allows a malicious sender to craft paths (e.g., traversal sequences or symlinks within the transfer set) that cause the receiver to write files outside the intended destination directory tree.

Attack chain from the defender's view:

  1. Attacker gains the ability to send files to an rsync receiver — via daemon access, an rsync-over-SSH account, or by compromising a legitimately-authorized backup client/source.
  2. The transfer is crafted so the receiver resolves paths outside the destination root.
  3. Files are written with the privileges of the rsync process — frequently root on backup servers.
  4. Post-exploitation options include overwriting cron entries, writing systemd units, replacing scripts executed by privileged jobs, or tampering with authorized_keys for persistence.

Note the asymmetric threat model: the sender attacks the receiver. That means if your servers pull backups from managed or third-party hosts, a compromise of the sending side turns your hardened receiver into the victim.

Exploitation status

At the time of the Ubuntu notice, these are published as vulnerabilities with patches — there is no confirmed in-the-wild exploitation reporting or CISA KEV listing attached to the notice. However, rsync flaws historically attract rapid PoC development (the 2024-era rsync daemon flaws saw exactly that pattern), and path-traversal/arbitrary-write primitives against backup infrastructure are high-value for both ransomware operators and intrusion sets. Do not wait for KEV inclusion to act — patch and audit configurations now, and deploy detection for the post-exploitation behaviors below, which are observable regardless of whether the CVE itself is exploited in your environment.

Detection & Response

Direct detection of the race condition or the traversal at the rsync layer is difficult pre-patch, so detection strategy focuses on two things: (1) rsyncd/rzync processes writing outside expected module roots, and (2) the downstream artifacts of an arbitrary-write primitive — new files in privileged locations and subsequent process execution.

Sigma Rules

YAML
---
title: rsync Writing Outside Expected Module Root
translations: {}
id: 3f6c2a91-8b4d-4e5a-9c71-7d2e4f1a6b8c
status: experimental
description: Detects rsync or rsyncd processes creating or modifying files in privileged system locations outside typical backup/module roots, consistent with exploitation of CVE-2026-53785 (relative-mode path traversal yielding arbitrary file write).
references:
  - https://ubuntu.com/security/notices/USN-9222-1
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  category: file_event
  product: linux
detection:
  selection_process:
    ProcessName|contains:
      - 'rsync'
  selection_path:
    TargetFilename|contains:
      - '/etc/cron'
      - '/etc/systemd/system'
      - '/root/.ssh'
      - '/home/*/.ssh'
      - '/usr/local/bin'
      - '/opt/*/bin'
  condition: selection_process and selection_path
falsepositives:
  - Legitimate backup jobs that archive dotfiles or system configuration; tune to your documented module roots
level: high
---
title: rrsync Restricted Shell Executing Unexpected Commands
translations: {}
id: 9a1e5d37-2c6f-4b8a-b3d9-5e7f8a0c1d2e
status: experimental
description: Detects rrsync-restricted SSH sessions executing command lines inconsistent with the restricted wrapper, indicating a possible TOCTOU sandbox escape (CVE-2026-53783) followed by out-of-confinement activity.
references:
  - https://ubuntu.com/security/notices/USN-9222-1
  - https://attack.mitre.org/techniques/T1059/004/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.privilege_escalation
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection_user_context:
    ParentCommandLine|contains:
      - 'rrsync'
  selection_suspicious:
    CommandLine|contains:
      - '/etc/'
      - 'crontab'
      - 'useradd'
      - 'usermod'
      - 'curl '
      - 'wget '
      - 'base64'
  condition: selection_user_context and selection_suspicious
falsepositives:
  - None expected in correctly configured rrsync environments; the wrapper should only invoke rsync with sanitized arguments
level: critical
---
title: New SSH Authorized Keys Written by Non-Interactive Process
translations: {}
id: 5c8b3f42-7a1d-4e9c-a6b2-3d4e5f6a7b8c
status: experimental
description: Detects creation or modification of authorized_keys files by processes other than sshd, a common persistence action after an arbitrary file write primitive such as CVE-2026-53785.
references:
  - https://attack.mitre.org/techniques/T1098/004/
  - https://ubuntu.com/security/notices/USN-9222-1
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.persistence
  - attack.t1098.004
logsource:
  category: file_event
  product: linux
detection:
  selection:
    TargetFilename|endswith:
      - '/.ssh/authorized_keys'
      - '/.ssh/authorized_keys2'
  filter_sshd:
    ProcessName|contains:
      - 'sshd'
  condition: selection and not filter_sshd
falsepositives:
  - Configuration management tools (Ansible, Puppet) deploying keys; allowlist your automation service accounts
level: high

KQL — Microsoft Sentinel Hunt

rsyncd logs land in syslog on Linux hosts and are commonly ingested into Sentinel via the Syslog/CEF connector. This query hunts for rsync daemon activity involving traversal sequences or unexpected path targets, and for SSH sessions against rrsync-gated accounts from unusual sources.

KQL — Microsoft Sentinel / Defender
// Hunt rsyncd for path traversal indicators and out-of-scope writes
Syslog
| where TimeGenerated > ago(7d)
| where ProcessName has_any ("rsync", "rsyncd")
| where SyslogMessage has_any ("..", "/etc/", "/root/", "authorized_keys", "symlink")
    or SyslogMessage contains "outside"
| project TimeGenerated, Computer, ProcessName, SyslogMessage, SeverityLevel
| order by TimeGenerated desc

// Hunt for SSH sessions hitting backup hosts where rrsync is the forced command
union (Syslog | where ProcessName == "sshd"),
      (SecurityEvent | where TimeGenerated > ago(7d))
| where TimeGenerated > ago(7d)
| where SyslogMessage has "Accepted" and SyslogMessage has_any ("backup", "rsync")
| summarize SessionCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by Computer, SourceIP = tostring(extract(@"from ([0-9.]+)", 1, SyslogMessage))
| where SessionCount > 50 or FirstSeen > ago(1d)

Tune the has_any terms to your documented module paths. The goal is anomalously broad filesystem targets in rsyncd logs and burst-pattern SSH acceptance against rrsync accounts — both correlate with attempted confinement escape.

Velociraptor VQL

This artifact hunts for files recently created or modified by rsync/rsyncd outside an expected backup root, plus active rsync network listeners, across Linux endpoints where Velociraptor is deployed.

VQL — Velociraptor
-- Hunt for rsync processes and files written outside expected module roots
-- Adjust the expected_root regex to your documented backup/module paths
SELECT Pid, Name, CommandLine, Exe, Username
FROM pslist()
WHERE Name =~ 'rsync'
   OR CommandLine =~ 'rsync'

-- Files modified in the last 24h in privileged dirs whose mtime changed recently
SELECT FullPath, Mtime, Size, Mode
FROM glob(glob='/{etc/cron.d,etc/systemd/system,root/.ssh,home/*/.ssh}/*')
WHERE Mtime > (now() - 86400)

Correlate the second result set back to the rsync process list: recent writes to cron/systemd/SSH key paths coinciding with rsync activity is a strong signal of CVE-2026-53785 post-exploitation staging.

Remediation & Verification Script

Bash / Shell
#!/bin/bash
# USN-9222-1 rsync verification and hardening helper (Debian/Ubuntu)
# Run as root or via sudo.

set -euo pipefail

echo "[+] Current rsync version:"
rsync --version | head -1
apt policy rsync | sed -n '1,8p'

echo "[+] Applying updates..."
apt-get update
apt-get install --only-upgrade rsync -y

echo "[+] Post-patch version:"
rsync --version | head -1

echo "[+] Auditing rsyncd modules for dangerous config (CVE-2026-53784)..."
if [ -f /etc/rsyncd.conf ]; then
    grep -Ei "^\s*(path|use chroot)" /etc/rsyncd.conf || echo "    (no module definitions found)"
    echo "[+] Checking whether module paths are symlinks..."
    grep -Ei "^\s*path\s*=" /etc/rsyncd.conf | awk -F'=' '{gsub(/[[:space:]]/,"",$2); print $2}' | while read -r p; do
        if [ -L "$p" ]; then
            echo "    WARNING: module path $p is a SYMLINK"
            grep -q "^\s*use chroot\s*=\s*no" /etc/rsyncd.conf && \
                echo "    CRITICAL: symlinked module root with chroot disabled (CVE-2026-53784 condition)"
        fi
    done
else
    echo "    /etc/rsyncd.conf not present (rsyncd may not be configured)"
fi

echo "[+] Identifying rrsync forced-command SSH keys (CVE-2026-53783 exposure)..."
grep -rl "rrsync" /home/*/.ssh/authorized_keys /root/.ssh/authorized_keys 2>/dev/null || \
    echo "    no rrsync forced commands found in standard locations"

echo "[+] Listing hosts with rsyncd listening on TCP/873..."
ss -tlnp | grep ':873' || echo "    no rsyncd listener detected"

echo "[+] Recent files written to sensitive paths (last 24h) — review for anomalies:"
find /etc/cron.d /etc/systemd/system /root/.ssh -type f -mtime -1 2>/dev/null | head -20

echo "[+] Done. Confirm the rsync version matches the fixed version in USN-9222-1."

Remediation

  1. Patch immediately. Apply the updated rsync packages referenced in USN-9222-1 via apt-get install --only-upgrade rsync (or your standard patch pipeline). Restart rsyncd if it runs as a daemon, and invalidate any long-running rsync sessions.

  2. Eliminate the CVE-2026-53784 trigger configuration. Even after patching, audit rsyncd.conf: remove symlinked module roots (point modules at canonical real paths) and enable use chroot = yes where the module's operational requirements allow. If chroot is operationally impossible, ensure module paths resolve to non-symlinked directories and apply strict hosts allow / auth restrictions.

  3. Restrict who can send to receivers (CVE-2026-53785). Because the malicious party is the sender, tighten trust on the sending side: require authentication on rsyncd modules, gate rsync-over-SSH with forced commands and per-client keys, and avoid pull-jobs from hosts you do not fully control. Where feasible, run receivers with --no-relative semantics or chrooted contexts that contain traversal damage.

  4. Downgrade rsync privileges. Run rsyncd as a dedicated unprivileged user where chroot is not in use, and ensure backup service accounts lack write access to cron, systemd, and other accounts' SSH directories. Arbitrary write is only catastrophic if the process context is privileged.

  5. Rotate exposure on rrsync-gated keys (CVE-2026-53783). Inventory every authorized_keys entry that forces rrsync. Until patched, those confinements were unreliable — review logs on those accounts for out-of-scope access and rotate keys where the account had any exposure to lower-trust parties.

  6. Network containment. TCP/873 should never be Internet-exposed. Verify firewall posture, restrict rsyncd listeners to management/backup VLANs, and alert on new rsync listeners appearing on hosts that historically do not run the daemon.

  7. Verify and monitor. Deploy the detection content above, baseline rsync write targets per host, and add file-integrity monitoring over cron, systemd unit paths, and .ssh directories on backup infrastructure.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.