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: 11/10/2025, 23:44:39 UTC

Technical Analysis

CVE-2024-12087 is a path traversal vulnerability discovered in the widely used file synchronization tool rsync. The flaw arises from the behavior of the --inc-recursive option, which is enabled by default for many client options and can also be enabled by the server even if the client does not explicitly request it. This option facilitates incremental recursive file transfers but lacks adequate symlink verification and performs deduplication checks only on a per-file-list basis. Consequently, a malicious rsync server can exploit this by crafting file paths that traverse outside the client's intended destination directory, effectively writing arbitrary files to locations on the client system. This can lead to overwriting legitimate files or planting malicious payloads, compromising the integrity of the client system. The vulnerability does not require any privileges on the client side but does require user interaction to initiate the rsync session. The CVSS 3.1 score is 6.5, reflecting a medium severity with network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and no availability impact. No public exploits have been reported yet, but the risk remains significant given rsync's widespread use in backup, synchronization, and deployment scenarios.

Potential Impact

For European organizations, the impact of CVE-2024-12087 can be substantial, especially for those relying on rsync for critical backup, file synchronization, or deployment tasks involving external or untrusted servers. The ability of a malicious server to write files outside the intended directory can lead to unauthorized modification or insertion of malicious files, potentially enabling further compromise such as privilege escalation, persistence, or lateral movement. While confidentiality is not directly impacted, the integrity of systems and data is at risk. This could disrupt business operations, lead to data corruption, or facilitate supply chain attacks. Organizations in sectors with stringent data integrity requirements, such as finance, healthcare, and government, are particularly vulnerable. The lack of known exploits in the wild reduces immediate risk but does not eliminate the threat, especially as attackers may develop exploits once the vulnerability is publicly known.

Mitigation Recommendations

To mitigate CVE-2024-12087, European organizations should: 1) Audit and update rsync installations to versions where this vulnerability is patched once available. 2) Disable the --inc-recursive option if not strictly necessary or configure rsync to prevent the server from enabling it unexpectedly. 3) Restrict rsync usage to trusted servers only, avoiding synchronization with untrusted or public servers. 4) Implement strict file system permissions and monitoring to detect unauthorized file writes or modifications outside expected directories. 5) Employ application whitelisting and integrity verification tools to detect unexpected changes to critical files. 6) Educate users and administrators about the risks of initiating rsync sessions with untrusted servers and enforce policies to minimize user interaction with risky operations. 7) Monitor security advisories for patches and apply them promptly. These steps go beyond generic advice by focusing on configuration controls, trust boundaries, and proactive detection.

Need more detailed analysis?Get 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: 11/10/2025, 11:44:39 PM

Last updated: 12/3/2025, 8:18:07 PM

Views: 29

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 enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats