A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2024-12087

CVE-2024-12087: Samba Rsync Path Traversal Vulnerability

CVE-2024-12087 is a path traversal vulnerability in Samba Rsync allowing malicious servers to write files outside intended directories. This post covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-12087 Overview

A path traversal vulnerability exists in rsync that allows a malicious server to write files outside of the client's intended destination directory. The flaw stems from behavior enabled by the --inc-recursive option, which is enabled by default for many client options and can be enabled by the server even if not explicitly enabled by the client. When using this option, a lack of proper symlink verification coupled with deduplication checks occurring on a per-file-list basis allows an attacker to write malicious files to arbitrary locations named after valid directories/paths on the client.

Critical Impact

A malicious rsync server can exploit this vulnerability to write arbitrary files to locations outside the intended sync destination, potentially leading to configuration tampering, malware deployment, or system compromise.

Affected Products

  • Samba rsync (all versions prior to patch)
  • Red Hat Enterprise Linux 8.0, 9.0 and EUS versions
  • AlmaLinux 8.0, 9.0, 10.0
  • Arch Linux
  • Gentoo Linux
  • NixOS
  • SUSE Linux
  • Triton DataCenter SmartOS

Discovery Timeline

  • January 14, 2025 - CVE-2024-12087 published to NVD
  • December 22, 2025 - Last updated in NVD database

Technical Details for CVE-2024-12087

Vulnerability Analysis

This path traversal vulnerability (CWE-22) affects rsync's incremental recursive file synchronization functionality. The core issue lies in how rsync handles symlink verification when operating in incremental recursive mode. The --inc-recursive option processes files in batches using file lists, and the deduplication checks performed during this process occur on a per-file-list basis rather than globally. This creates a window where a malicious server can manipulate the synchronization process to bypass path restrictions.

When a client connects to a malicious rsync server, the server can craft responses that exploit the gap between symlink verification and deduplication checks. By carefully timing the introduction of symlinks and target files across different file lists, the server can trick the client into following symlinks that point outside the designated destination directory, ultimately writing attacker-controlled content to arbitrary filesystem locations.

Root Cause

The root cause is insufficient validation of file paths during incremental recursive synchronization operations. The vulnerability manifests because:

  1. Symlink verification does not adequately account for paths that may have been validated in previous file lists
  2. Deduplication checks operate within the scope of individual file lists rather than maintaining global state
  3. The --inc-recursive option can be server-enabled, removing client control over whether this vulnerable code path is exercised
  4. Path canonicalization and boundary enforcement fail to prevent traversal when symlinks span multiple file list batches

Attack Vector

The attack requires a client to connect to a malicious rsync server. The server exploits the vulnerability through network-based interaction during synchronization operations. Since this is a server-to-client attack, any system using rsync to pull data from untrusted or compromised servers is at risk.

The attack flow involves the malicious server sending crafted file list data that manipulates the incremental recursive processing. By strategically placing symlinks and regular files across file list boundaries, the attacker causes the client to write files to unintended locations. The attacker can target sensitive system directories such as /etc, user home directories, or application configuration paths.

Detection Methods for CVE-2024-12087

Indicators of Compromise

  • Unexpected files appearing outside designated rsync destination directories
  • Symlinks created in sync destinations pointing to sensitive system paths like /etc, /root, or /home
  • Rsync log entries showing path traversal sequences (../) in transferred file names
  • Modified system configuration files correlating with rsync synchronization timestamps

Detection Strategies

  • Monitor rsync process activity for file writes outside expected destination paths using file integrity monitoring solutions
  • Implement audit rules to track symlink creation and file modifications during rsync operations
  • Deploy endpoint detection and response (EDR) solutions capable of identifying anomalous file system activity patterns
  • Review rsync logs for suspicious file path patterns, particularly those containing relative path components

Monitoring Recommendations

  • Enable verbose rsync logging with the -v or --log-file options to capture detailed transfer information
  • Implement real-time file integrity monitoring on critical system directories
  • Configure alerts for rsync processes writing to unexpected filesystem locations
  • Monitor network connections to identify rsync traffic with untrusted or suspicious remote servers

How to Mitigate CVE-2024-12087

Immediate Actions Required

  • Update rsync to the latest patched version available from your distribution's package repository
  • Audit all rsync configurations to identify connections to external or untrusted servers
  • Disable the --inc-recursive option explicitly using --no-inc-recursive when connecting to servers that don't require incremental recursion
  • Implement network segmentation to restrict rsync traffic to trusted internal servers only

Patch Information

Security patches have been released by multiple vendors. Consult the following advisories for version-specific patch information:

  • Red Hat Security Advisory RHSA-2025:2600 - Red Hat Enterprise Linux patches
  • CERT Vulnerability Note #952657 - Coordination center advisory
  • Debian LTS Security Announcement - Debian package updates
  • NetApp Security Advisory NTAP-20250131-0002 - NetApp product updates
  • GitHub Security Advisory GHSA-p5pg-x43v-mvqj - Technical details from Google Security Research

Workarounds

  • Use the --no-inc-recursive flag explicitly when invoking rsync to disable incremental recursive mode
  • Employ chroot environments or containerization to isolate rsync processes and limit filesystem access
  • Configure rsync daemon (rsyncd) with strict path and read only directives to limit server-side exposure
  • Use --safe-links option to ignore symlinks that point outside the destination tree
bash
# Safe rsync configuration example
# Explicitly disable incremental recursion and enable safe link handling
rsync -avz --no-inc-recursive --safe-links user@trusted-server:/source/ /destination/

# For rsyncd.conf, restrict paths and enforce read-only where possible
# [backup]
#     path = /srv/backup
#     read only = yes
#     refuse options = inc-recursive

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechSamba

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability2.36%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Red Hat Security Advisory RHSA-2025:23154

  • Red Hat Security Advisory RHSA-2025:23235

  • Red Hat Security Advisory RHSA-2025:23407

  • Red Hat Security Advisory RHSA-2025:23415

  • Red Hat Security Advisory RHSA-2025:23416

  • Red Hat Security Advisory RHSA-2025:23842

  • Red Hat Security Advisory RHSA-2025:23853

  • Red Hat Security Advisory RHSA-2025:23854

  • Red Hat Security Advisory RHSA-2025:23858

  • Red Hat Security Advisory RHSA-2025:2600

  • Red Hat Security Advisory RHSA-2025:7050

  • Red Hat Security Advisory RHSA-2025:8385

  • CVE-2024-12087 Red Hat Security Info

  • Red Hat Bug Report #2330672

  • CERT Vulnerability Note #952657

  • Debian LTS Announcement January 2025

  • NetApp Security Advisory NTAP-20250131-0002

  • CERT Vulnerability Note #952657

  • GitHub Security Advisory GHSA-p5pg-x43v-mvqj
  • Related CVEs
  • CVE-2024-12084

  • CVE-2024-12088

  • CVE-2024-12086

  • CVE-2024-12085
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
  • English
  • 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