Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-12087: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

0
Medium
VulnerabilityCVE-2024-12087cvecve-2024-12087
Published: Tue Jan 14 2025 (01/14/2025, 17:57:33 UTC)
Source: CVE

Description

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 11:38:50 UTC

Technical Analysis

CVE-2024-12087 is a path traversal vulnerability identified in the widely used file synchronization tool rsync. The issue arises from the behavior of the --inc-recursive option, which is enabled by default for many client options and can be activated by the server even if the client does not explicitly request it. This option facilitates incremental recursive file transfers but lacks adequate symlink verification. Additionally, deduplication checks are performed on a per-file-list basis rather than globally, which allows a malicious rsync server to exploit these weaknesses to write files outside the client's intended destination directory. By crafting file paths that traverse directories, the server can place files in arbitrary locations on the client system, potentially overwriting or injecting malicious files into critical directories. The vulnerability does not require prior authentication or elevated privileges but does require user interaction in the form of initiating an rsync session with a malicious server. The impact primarily affects the integrity of client systems, as unauthorized files can be introduced or existing files overwritten. Confidentiality and availability are not directly impacted. The CVSS v3.1 base score is 6.5, reflecting a medium severity level with network attack vector, low attack complexity, no privileges required, and user interaction needed. No public exploits have been reported to date. The vulnerability was reserved in December 2024 and published in January 2025, with enrichment from CISA and Red Hat assigners. Mitigation involves patching rsync when updates become available and carefully controlling which servers clients synchronize with, especially avoiding untrusted or unknown servers. Disabling or restricting the --inc-recursive option where possible can also reduce risk.

Potential Impact

The primary impact of CVE-2024-12087 is the potential compromise of data integrity on client systems using rsync in client-server mode. A malicious server can write arbitrary files outside the intended synchronization directory, potentially overwriting critical system or application files or planting malicious payloads. This could lead to unauthorized code execution, persistence mechanisms, or disruption of normal operations if critical files are replaced or corrupted. Since confidentiality and availability are not directly affected, the main concern is the integrity and trustworthiness of client data. Organizations relying on rsync for backup, deployment, or file synchronization may face risks of supply chain attacks or targeted compromise if they connect to untrusted servers. The ease of exploitation is moderate due to the need for user interaction and network access to a malicious server, but no authentication or privileges are required, increasing the threat surface. The scope includes any client systems running vulnerable versions of rsync with --inc-recursive enabled, which is common in many default configurations. This vulnerability could be leveraged in targeted attacks against organizations that synchronize files with external rsync servers, including cloud providers, third-party vendors, or remote offices.

Mitigation Recommendations

1. Apply official patches or updates to rsync as soon as they are released that address CVE-2024-12087. 2. Until patches are available, disable the --inc-recursive option on clients if possible, or configure rsync clients to avoid using this option. 3. Restrict rsync client connections to trusted and verified servers only; avoid synchronizing with unknown or untrusted servers. 4. Implement network-level controls such as firewall rules or VPNs to limit rsync traffic to authorized endpoints. 5. Monitor file system changes on client machines, especially outside expected synchronization directories, to detect unauthorized file writes. 6. Use file integrity monitoring tools to alert on unexpected modifications or additions to critical directories. 7. Educate users and administrators about the risks of connecting to untrusted rsync servers and the importance of verifying server authenticity. 8. Review and harden rsync server configurations to prevent enabling --inc-recursive for clients unless explicitly required and trusted. 9. Consider alternative secure file transfer methods that provide stronger guarantees against path traversal and unauthorized writes. 10. Maintain up-to-date inventories of rsync versions deployed across the organization to prioritize remediation efforts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2024-12-03T08:58:04.170Z
Cisa Enriched
true
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d9816c4522896dcbd6699

Added to database: 5/21/2025, 9:08:38 AM

Last enriched: 2/28/2026, 11:38:50 AM

Last updated: 3/25/2026, 8:22:04 PM

Views: 53

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses