CVEfocus › CVE database › CVE-2024-12087

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

CVSS 6.5 MediumEPSS 1.9% (higher than 80% of CVEs)Published 2025-01-14Updated 2026-11-03Assigner: redhat

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.

CWE-22

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

28Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04rsyncFixed3.2.7-1ubuntu1.1UBUNTU-CVE-2024-12087
Ubuntu 22.04rsyncFixed3.2.7-0ubuntu0.22.04.3UBUNTU-CVE-2024-12087
Ubuntu 20.04rsyncFixed3.1.3-8ubuntu0.8UBUNTU-CVE-2024-12087
Ubuntu 18.04rsyncFix pending3.1.2-2.1ubuntu1.6+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-12087
Ubuntu 16.04rsyncFix pending3.1.1-3ubuntu1.3+esm3 (Ubuntu Pro)UBUNTU-CVE-2024-12087
Ubuntu 14.04rsyncFix pending3.1.0-2ubuntu0.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-12087
Debian 14rsyncFixed3.3.0+ds1-3DEBIAN-CVE-2024-12087
Debian 13rsyncFixed3.3.0+ds1-3DEBIAN-CVE-2024-12087
Debian 12rsyncFixed3.2.7-1+deb12u1DEBIAN-CVE-2024-12087
Red Hat Enterprise Linux 10rsyncFixed0:3.4.1-2.el10RHBA-2025:6470
Red Hat Enterprise Linux 10rsync-daemonFixed0:3.4.1-2.el10RHBA-2025:6470
Red Hat Enterprise Linux 10rsync-rrsyncFixed0:3.4.1-2.el10RHBA-2025:6470
Red Hat Enterprise Linux 9rsyncFixed0:3.2.5-3.el9RHSA-2025:7050
Red Hat Enterprise Linux 9rsync-daemonFixed0:3.2.5-3.el9RHSA-2025:7050
Red Hat Enterprise Linux 9rsync-rrsyncFixed0:3.2.5-3.el9RHSA-2025:7050
Red Hat Enterprise Linux 8rsyncFixed0:3.1.3-21.el8_10RHSA-2025:2600
Red Hat Enterprise Linux 8rsync-daemonFixed0:3.1.3-21.el8_10RHSA-2025:2600
AlmaLinux 9rsyncFixed3.2.5-3.el9ALSA-2025:7050
AlmaLinux 9rsync-daemonFixed3.2.5-3.el9ALSA-2025:7050
AlmaLinux 9rsync-rrsyncFixed3.2.5-3.el9ALSA-2025:7050
AlmaLinux 8rsyncFixed3.1.3-21.el8_10ALSA-2025:2600
AlmaLinux 8rsync-daemonFixed3.1.3-21.el8_10ALSA-2025:2600
Rocky Linux 9rsyncFixed0:3.2.5-3.el9RLSA-2025:7050
Rocky Linux 8rsyncFixed0:3.1.3-21.el8_10RLSA-2025:2600
Alpine Linux 3.24rsyncFixed3.4.0-r0ALPINE-CVE-2024-12087
Alpine Linux 3.23rsyncFixed3.4.0-r0ALPINE-CVE-2024-12087
Alpine Linux 3.22rsyncFixed3.4.0-r0ALPINE-CVE-2024-12087
Alpine Linux 3.21rsyncFixed3.4.0-r0ALPINE-CVE-2024-12087
Alpine Linux 3.20rsyncFixed3.4.0-r0ALPINE-CVE-2024-12087
Alpine Linux 3.19rsyncFixed3.4.0-r0ALPINE-CVE-2024-12087
Alpine Linux 3.18rsyncFixed3.4.0-r0ALPINE-CVE-2024-12087

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.