The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-29154

CVE-2022-29154: Samba Rsync RCE Vulnerability

CVE-2022-29154 is a remote code execution vulnerability in Samba Rsync that allows malicious servers to write arbitrary files to client directories. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-29154 Overview

CVE-2022-29154 is an improper input validation vulnerability discovered in rsync versions prior to 3.2.5. This security flaw allows malicious remote servers to write arbitrary files inside the directories of connecting clients. While the rsync protocol allows servers to specify which files and directories are transmitted to clients, the rsync client fails to perform adequate validation of received file names, enabling attackers to exploit this trust relationship.

Critical Impact

A malicious rsync server or Man-in-the-Middle attacker can overwrite arbitrary files in the rsync client's target directory and subdirectories, including sensitive files like .ssh/authorized_keys, potentially leading to complete system compromise.

Affected Products

  • Samba rsync (versions before 3.2.5)
  • Fedora 35
  • Fedora 36

Discovery Timeline

  • 2022-08-02 - CVE-2022-29154 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-29154

Vulnerability Analysis

This vulnerability stems from a fundamental trust issue in the rsync client-server communication model. When an rsync client connects to a remote server, it expects the server to provide a list of files to synchronize. The server controls which files are sent, including their paths and names. However, the client's validation of these file names is insufficient, allowing a malicious server to send files with crafted names that escape the intended target directory.

The impact of this vulnerability is significant because rsync is widely used for backup operations, system synchronization, and automated deployment scripts. Many organizations rely on rsync for critical infrastructure tasks, often running with elevated privileges. A successful exploitation could allow attackers to overwrite system configuration files, inject malicious SSH keys for persistent access, or modify scripts that execute with elevated privileges.

Root Cause

The root cause of CVE-2022-29154 lies in CWE-20: Improper Input Validation. The rsync client does not properly sanitize or validate file paths received from the server before writing files to the local filesystem. This allows path components or specially crafted file names that could result in files being written to unintended locations within the client's accessible directory structure.

Attack Vector

The vulnerability is exploitable over the network, making it particularly dangerous in scenarios where:

  1. Compromised rsync servers - If an attacker gains control of an rsync server that clients trust, they can exploit any connecting client
  2. Man-in-the-Middle attacks - An attacker positioned between a legitimate rsync client and server can intercept and modify the file transfer, injecting malicious files
  3. Rogue rsync servers - Attackers can set up malicious rsync servers and trick users into connecting through social engineering or DNS hijacking

The attack does not require authentication and can be executed without user interaction once a client initiates a connection to a malicious or compromised server. A successful attack targeting the .ssh/authorized_keys file would grant the attacker persistent SSH access to the victim system.

Detection Methods for CVE-2022-29154

Indicators of Compromise

  • Unexpected modifications to files in .ssh/ directories, particularly authorized_keys
  • Anomalous files appearing in rsync target directories that were not part of the expected synchronization
  • rsync client connections to unfamiliar or suspicious server IP addresses
  • Unexpected changes to system configuration files or scripts in rsync-managed directories

Detection Strategies

  • Monitor file system integrity in directories commonly used as rsync targets using file integrity monitoring (FIM) solutions
  • Implement network traffic analysis to detect anomalous rsync protocol behavior or connections to unauthorized servers
  • Review rsync logs for unusual file transfer patterns or unexpected path traversal indicators
  • Deploy endpoint detection rules that alert on modifications to sensitive files like SSH authorized_keys after rsync operations

Monitoring Recommendations

  • Enable verbose logging for rsync operations and centralize logs for analysis
  • Configure alerts for rsync connections to IP addresses not on an approved whitelist
  • Monitor for new SSH key additions or modifications across systems that use rsync for synchronization
  • Implement behavioral analytics to baseline normal rsync file transfer patterns and flag deviations

How to Mitigate CVE-2022-29154

Immediate Actions Required

  • Upgrade rsync to version 3.2.5 or later immediately on all affected systems
  • Audit existing rsync configurations to identify connections to untrusted or external servers
  • Review file integrity of rsync target directories for any signs of compromise
  • Consider temporarily disabling automated rsync jobs connecting to external servers until patching is complete

Patch Information

The vulnerability has been fixed in rsync version 3.2.5. Users should upgrade to this version or later to mitigate the risk. Updated packages are available through the GitHub rsync Release Tags page. Fedora users can obtain patched versions through the Fedora package repositories as announced in the Fedora Package Announcements.

For additional details, refer to the OpenWall OSS-Security Mailing List disclosure.

Workarounds

  • Use SSH tunneling for rsync connections to ensure server authenticity and prevent Man-in-the-Middle attacks
  • Restrict rsync operations to connect only to known and trusted servers using firewall rules
  • Run rsync with restricted permissions and avoid running as root when possible
  • Implement strict file path whitelisting on the client side to limit which directories rsync can write to
bash
# Example: Use SSH tunneling with host key verification for rsync
rsync -avz -e "ssh -o StrictHostKeyChecking=yes" user@trusted-server:/source/ /destination/

# Restrict rsync to specific directories with chroot-like behavior
rsync --safe-links --ignore-existing -avz server::module /restricted/target/

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSamba

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.50%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • GitHub rsync Release Tags

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • OpenWall OSS-Security Mailing List
  • Related CVEs
  • CVE-2025-10230: Samba WINS Hook RCE Vulnerability

  • CVE-2021-44142: Samba vfs_fruit Module RCE Vulnerability

  • CVE-2025-0620: Samba Authentication Bypass Vulnerability

  • CVE-2024-12087: Samba Rsync Path Traversal Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English