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: 12/23/2025, 21:55:40 UTC

Technical Analysis

CVE-2024-12087 is a path traversal vulnerability discovered in the widely used file synchronization tool rsync. The issue arises from the `--inc-recursive` option, which is enabled by default in many client configurations and can also be enabled by the server even if the client does not explicitly request it. This option affects how rsync handles incremental recursive file transfers. The vulnerability is due to insufficient verification of symbolic links combined with deduplication checks that occur on a per-file-list basis rather than globally. This flaw allows a malicious rsync server to craft file lists that cause the client to write files outside its intended destination directory, potentially overwriting or creating files in arbitrary locations on the client system. The attack vector requires the client to initiate an rsync session with a malicious or compromised server, and user interaction is needed to start the transfer. The vulnerability impacts the integrity of client systems by enabling unauthorized file writes, but it does not directly affect confidentiality or availability. The CVSS 3.1 score of 6.5 reflects a medium severity, with network attack vector, low attack complexity, no privileges required, but user interaction necessary. No known exploits are currently reported in the wild, but the risk remains significant due to rsync's widespread use in backup and synchronization tasks across many organizations.

Potential Impact

For European organizations, the primary impact of CVE-2024-12087 is the potential compromise of system integrity through unauthorized file writes by a malicious rsync server. This could lead to the deployment of malicious files, unauthorized configuration changes, or disruption of backup and synchronization processes. Sectors that rely heavily on rsync for automated backups, data replication, or deployment pipelines—such as financial services, government agencies, healthcare, and critical infrastructure—are particularly vulnerable. The ability of an attacker to write files outside the intended directory could facilitate further attacks, including privilege escalation or persistence mechanisms. While confidentiality and availability impacts are limited, the integrity breach can undermine trust in data and system states, potentially causing operational disruptions and compliance issues under regulations like GDPR. The requirement for user interaction and initiation of rsync sessions somewhat limits the attack surface but does not eliminate risk, especially in automated or scripted environments connecting to external or third-party rsync servers.

Mitigation Recommendations

European organizations should immediately review and audit their use of rsync, especially configurations involving the `--inc-recursive` option. Practical steps include: 1) Temporarily disabling the `--inc-recursive` option on clients until patches or updates addressing the vulnerability are applied. 2) Restricting rsync client connections to trusted and verified servers only, using network segmentation and firewall rules. 3) Monitoring and logging rsync sessions to detect unusual file write patterns or unexpected directory traversals. 4) Applying vendor or community patches as soon as they become available to fix the underlying symlink verification and deduplication logic. 5) Employing file integrity monitoring tools on client systems to detect unauthorized file changes outside expected directories. 6) Educating users and administrators about the risks of connecting to untrusted rsync servers and enforcing strict operational procedures for rsync usage. 7) Considering alternative secure file transfer methods if rsync usage cannot be sufficiently secured. These measures go beyond generic advice by focusing on configuration hardening, network controls, and proactive detection tailored to this specific vulnerability.

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: 12/23/2025, 9:55:40 PM

Last updated: 1/19/2026, 7:54:57 AM

Views: 40

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