CVE-2024-12088: Rsync: path traversal vulnerability in rsync
A flaw was found in rsync which could be triggered when rsync compares file checksums. This flaw allows an attacker to manipulate the checksum length (s2length) to cause a comparison between a checksum and uninitialized memory and leak one byte of uninitialized stack data at a time.
Other sources
A flaw was found in rsync. It could allow a server to enumerate the contents of an arbitrary file from the client's machine. This issue occurs when files are being copied from a client to a server. During this process, the rsync server will send checksums of local data to the client to compare with in order to determine what data needs to be sent to the server. By sending specially constructed checksum values for arbitrary files, an attacker may be able to reconstruct the data of those files byte-by-byte based on the responses from the client.
— OSV
A flaw was found in rsync. When using the --safe-links option, the rsync client fails to properly verify if a symbolic link destination sent from the server contains another symbolic link within it. This results in a path traversal vulnerability, which may lead to arbitrary file write outside the desired directory.
— OSV
A heap-based buffer overflow flaw was found in the rsync daemon. This issue is due to improper handling of attacker-controlled checksum lengths (s2length) in the code. When MAXDIGESTLEN exceeds the fixed SUMLENGTH (16 bytes), an attacker can write out of bounds in the sum2 buffer.
— OSV
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.
— OSV
rsync --safe-links options fail to verify whether a symbolic link destination contains another symbolic link with it leading to a path traversal vulnerability
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/rsyncto a version that resolves this vulnerability.Fixed in 3.4.0-r0 - Upgrade
Upgrade
debian/rsyncto a version that resolves this vulnerability.Fixed in 3.2.7-1+deb12u1 - Upgrade
Upgrade
debian/rsyncto a version that resolves this vulnerability.Fixed in 3.3.0+ds1-3 - Upgrade
Upgrade
debian/rsyncto a version that resolves this vulnerability.Fixed in 3.2.3-4+deb11u2Fixed in 3.2.7-1+deb12u1Fixed in 3.3.0+ds1-3
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
Frequently Asked Questions
What is the severity of CVE-2024-12088?
CVE-2024-12088 is classified as a medium severity path traversal vulnerability in rsync.
How do I fix CVE-2024-12088?
To fix CVE-2024-12088, upgrade rsync to version 3.2.3-4+deb11u3, 3.2.7-1+deb12u2, or 3.3.0+ds1-4.
Who is affected by CVE-2024-12088?
CVE-2024-12088 affects users of rsync versions up to and including 3.2.3-4+deb11u1 and 3.2.7-1.
What type of vulnerability is CVE-2024-12088?
CVE-2024-12088 is a path traversal vulnerability due to improper verification of symbolic link destinations.
Can CVE-2024-12088 lead to data loss?
Yes, CVE-2024-12088 may lead to arbitrary file writes outside the intended directory, potentially resulting in data loss.