CVE-2024-12088: Rsync: path traversal vulnerability in rsync

Published Dec 5, 2024
·
Updated

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

45 affected componentsFixes available
F5 BIG-IQ Centralized Management
Microsoft azl3 rsync 3.4.1-1
Microsoft cbl2 rsync 3.4.1-1
Microsoft azl3 rsync 3.2.7-1
Microsoft cbl2 rsync 3.2.5-1
alpine/rsync<3.4.0-r0
3.4.0-r0
alpine/rsync<3.4.0-r0
3.4.0-r0
alpine/rsync<3.4.0-r0
3.4.0-r0
alpine/rsync<3.4.0-r0
3.4.0-r0
alpine/rsync<3.4.0-r0
3.4.0-r0
alpine/rsync<3.4.0-r0
3.4.0-r0
alpine/rsync<3.4.0-r0
3.4.0-r0
Samba rsync<=3.3.0
redhat Discovery=1.14
redhat OpenShift Container Platform=4.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0
redhat Enterprise Linux Eus=9.6
redhat Enterprise Linux For Arm 64=8.0_aarch64
redhat Enterprise Linux For Arm 64=9.0_aarch64
redhat Enterprise Linux For Arm 64 Eus=9.6_aarch64
redhat Enterprise Linux For Ibm Z Systems=8.0_s390x
redhat Enterprise Linux For Ibm Z Systems=9.0_s390x
redhat Enterprise Linux For Ibm Z Systems Eus=9.6_s390x
redhat Enterprise Linux For Power Little Endian=8.0_ppc64le
redhat Enterprise Linux For Power Little Endian=9.0_ppc64le
redhat Enterprise Linux For Power Little Endian Eus=9.6_ppc64le
redhat Enterprise Linux Server Aus=9.6
redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions=9.6_ppc64le
redhat Enterprise Linux Update Services For Sap Solutions=9.6
Archlinux Arch Linux
Gentoo Linux
NixOS NixOS<24.11
Novell SUSE Linux
Tritondatacenter Smartos<20250123
AlmaLinux Almalinux=8.0
AlmaLinux Almalinux=9.0
AlmaLinux Almalinux=10.0
debian/rsync<3.2.7-1+deb12u1
3.2.7-1+deb12u1
debian/rsync<3.3.0+ds1-3
3.3.0+ds1-3
debian/rsync<3.3.0+ds1-3
3.3.0+ds1-3
debian/rsync
3.2.3-4+deb11u23.2.7-1+deb12u13.3.0+ds1-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/rsync to a version that resolves this vulnerability.

    Fixed in 3.4.0-r0
  2. Upgrade

    Upgrade debian/rsync to a version that resolves this vulnerability.

    Fixed in 3.2.7-1+deb12u1
  3. Upgrade

    Upgrade debian/rsync to a version that resolves this vulnerability.

    Fixed in 3.3.0+ds1-3
  4. Upgrade

    Upgrade debian/rsync to 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

Dec 5, 2024
Data Sourced
via Red Hat·09:59 PM
DescriptionSeverityAffected Software
Jan 14, 2025
CVE Published
via OSV·05:37 PM
Data Sourced
via OSV·05:37 PM
DescriptionSeverityWeakness
CVE Published
via MITRE·05:38 PM
Data Sourced
via MITRE·05:38 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Jan 15, 2025
News Published
via The Hacker News·12:26 PM
Jan 19, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Jan 23, 2025
News Published
via BleepingComputer·06:30 PM
Feb 10, 2025
Updated
via MITRE·12:03 PM
Description
Updated
via NVD·12:15 PM
Description
Feb 26, 2025
Exploit Published
via CISA·02:13 PM
Mar 3, 2025
News Published
via The Hacker News·11:58 AM
Mar 13, 2025
Advisory Published
via F5·01:26 AM
Data Sourced
via F5·01:26 AM
DescriptionSeverityWeaknessAffected Software
Updated
via F5·04:09 PM
Affected Software
Jun 18, 2025
Data Sourced
via NVD·04:29 PM
Affected Software
Updated
via NVD·04:29 PM
SeverityWeakness
Aug 12, 2025
Updated
via MITRE·08:37 PM
Weakness
Updated
via NVD·09:15 PM
Weakness
Oct 21, 2026
Updated
via NVD·09:17 PM
DescriptionSeverityWeakness
Nov 2, 2026
Data Sourced
via OSV·11:17 AM
Affected Software
Nov 5, 2026
Event
via OSV·09:15 PM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-12088?

CVE-2024-12088 is classified as a medium severity path traversal vulnerability in rsync.

2

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.

3

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.

4

What type of vulnerability is CVE-2024-12088?

CVE-2024-12088 is a path traversal vulnerability due to improper verification of symbolic link destinations.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203