CVE-2024-12087Rsync: path traversal vulnerability in rsync
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | rsync | Fixed | 3.2.7-1ubuntu1.1 | UBUNTU-CVE-2024-12087 |
| Ubuntu 22.04 | rsync | Fixed | 3.2.7-0ubuntu0.22.04.3 | UBUNTU-CVE-2024-12087 |
| Ubuntu 20.04 | rsync | Fixed | 3.1.3-8ubuntu0.8 | UBUNTU-CVE-2024-12087 |
| Ubuntu 18.04 | rsync | Fix pending | 3.1.2-2.1ubuntu1.6+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-12087 |
| Ubuntu 16.04 | rsync | Fix pending | 3.1.1-3ubuntu1.3+esm3 (Ubuntu Pro) | UBUNTU-CVE-2024-12087 |
| Ubuntu 14.04 | rsync | Fix pending | 3.1.0-2ubuntu0.4+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-12087 |
| Debian 14 | rsync | Fixed | 3.3.0+ds1-3 | DEBIAN-CVE-2024-12087 |
| Debian 13 | rsync | Fixed | 3.3.0+ds1-3 | DEBIAN-CVE-2024-12087 |
| Debian 12 | rsync | Fixed | 3.2.7-1+deb12u1 | DEBIAN-CVE-2024-12087 |
| Red Hat Enterprise Linux 10 | rsync | Fixed | 0:3.4.1-2.el10 | RHBA-2025:6470 |
| Red Hat Enterprise Linux 10 | rsync-daemon | Fixed | 0:3.4.1-2.el10 | RHBA-2025:6470 |
| Red Hat Enterprise Linux 10 | rsync-rrsync | Fixed | 0:3.4.1-2.el10 | RHBA-2025:6470 |
| Red Hat Enterprise Linux 9 | rsync | Fixed | 0:3.2.5-3.el9 | RHSA-2025:7050 |
| Red Hat Enterprise Linux 9 | rsync-daemon | Fixed | 0:3.2.5-3.el9 | RHSA-2025:7050 |
| Red Hat Enterprise Linux 9 | rsync-rrsync | Fixed | 0:3.2.5-3.el9 | RHSA-2025:7050 |
| Red Hat Enterprise Linux 8 | rsync | Fixed | 0:3.1.3-21.el8_10 | RHSA-2025:2600 |
| Red Hat Enterprise Linux 8 | rsync-daemon | Fixed | 0:3.1.3-21.el8_10 | RHSA-2025:2600 |
| AlmaLinux 9 | rsync | Fixed | 3.2.5-3.el9 | ALSA-2025:7050 |
| AlmaLinux 9 | rsync-daemon | Fixed | 3.2.5-3.el9 | ALSA-2025:7050 |
| AlmaLinux 9 | rsync-rrsync | Fixed | 3.2.5-3.el9 | ALSA-2025:7050 |
| AlmaLinux 8 | rsync | Fixed | 3.1.3-21.el8_10 | ALSA-2025:2600 |
| AlmaLinux 8 | rsync-daemon | Fixed | 3.1.3-21.el8_10 | ALSA-2025:2600 |
| Rocky Linux 9 | rsync | Fixed | 0:3.2.5-3.el9 | RLSA-2025:7050 |
| Rocky Linux 8 | rsync | Fixed | 0:3.1.3-21.el8_10 | RLSA-2025:2600 |
| Alpine Linux 3.24 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine Linux 3.23 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine Linux 3.22 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine Linux 3.21 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine Linux 3.20 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine Linux 3.19 | rsync | Fixed | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine Linux 3.18 | rsync | Fixed | 3.4.0-r0 | ALPINE-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.
- rsync: affected: up to 3.3.0
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
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:
- https://access.redhat.com/errata/RHBA-2025:6470 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:23154 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:23235 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:23407 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:23415 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:23416 (vendor-advisory)
References
- https://access.redhat.com/errata/RHBA-2025:6470
- https://access.redhat.com/errata/RHSA-2025:23154
- https://access.redhat.com/errata/RHSA-2025:23235
- https://access.redhat.com/errata/RHSA-2025:23407
- https://access.redhat.com/errata/RHSA-2025:23415
- https://access.redhat.com/errata/RHSA-2025:23416
- https://access.redhat.com/errata/RHSA-2025:23842
- https://access.redhat.com/errata/RHSA-2025:23853
- https://access.redhat.com/errata/RHSA-2025:23854
- https://access.redhat.com/errata/RHSA-2025:23858
- https://access.redhat.com/errata/RHSA-2025:2600
- https://access.redhat.com/errata/RHSA-2025:7050
- https://access.redhat.com/errata/RHSA-2025:8385
- https://access.redhat.com/security/cve/CVE-2024-12087
- https://bugzilla.redhat.com/show_bug.cgi?id=2330672
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.