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

AILast updated: 01/28/2026, 19:08:43 UTC

Technical Analysis

CVE-2024-12087 is a medium-severity path traversal vulnerability in the widely used file synchronization tool rsync. The root cause lies in the --inc-recursive option, which is enabled by default for many client options and can also be enabled by the server independently of the client’s explicit choice. This option facilitates incremental recursive transfers but fails to properly verify symbolic links during the synchronization process. Additionally, deduplication checks are performed on a per-file-list basis rather than globally, which can be exploited by a malicious rsync server. Specifically, an attacker controlling the server can craft file lists and symbolic links that cause rsync running on the client to write files outside the intended destination directory on the client system. This allows the server to place arbitrary files in arbitrary locations on the client machine, potentially overwriting or injecting malicious files into sensitive directories. Exploitation requires the client to initiate a connection and interact with the server, but no prior authentication or elevated privileges are necessary on the client side. The vulnerability impacts the integrity of client systems by enabling unauthorized file modifications, but does not directly compromise confidentiality or availability. The CVSS 3.1 score of 6.5 reflects the network attack vector, low attack complexity, no privileges required, but requiring user interaction and limited to integrity impact. No known exploits are currently reported in the wild, but the vulnerability is publicly disclosed and should be addressed promptly.

Potential Impact

For European organizations, the primary impact is the potential for unauthorized modification of client systems during rsync operations with untrusted or compromised servers. This can lead to the insertion of malicious files, backdoors, or tampering with critical configuration or application files, undermining system integrity. Organizations relying on rsync for backup, file synchronization, or deployment across distributed environments face risks of supply chain or insider threats exploiting this vulnerability. While confidentiality and availability impacts are minimal, integrity breaches can facilitate further attacks such as privilege escalation or lateral movement. The risk is heightened in sectors with extensive use of rsync for automated file transfers, including government, finance, healthcare, and critical infrastructure. The vulnerability could also be leveraged in targeted attacks against European entities by adversaries controlling or compromising rsync servers. Given the default or server-enabled nature of --inc-recursive, many deployments may be unknowingly exposed.

Mitigation Recommendations

European organizations should immediately audit their rsync usage to identify instances where the --inc-recursive option is enabled, either by client configuration or server policy. Disabling --inc-recursive where not strictly necessary reduces exposure. When incremental recursive transfers are required, ensure that rsync versions are updated to include patches addressing this vulnerability once available. Until patches are applied, restrict rsync server access to trusted entities only and avoid connecting to untrusted or public rsync servers. Implement file system monitoring and integrity verification on client systems to detect unauthorized file writes or modifications. Employ network segmentation and strict firewall rules to limit rsync traffic to known safe endpoints. Additionally, consider using alternative secure file transfer methods that do not exhibit this vulnerability for sensitive data synchronization. Educate system administrators about the risks of this vulnerability and the importance of verifying server trustworthiness before initiating rsync operations.

Need more detailed analysis?Upgrade to Pro Console

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: 1/28/2026, 7:08:43 PM

Last updated: 2/7/2026, 2:41:10 AM

Views: 44

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 in Console -> Billing for AI refresh and higher limits.

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

Latest Threats