Vulnerability · Published Jan 14, 2025 · Assigned by redhat
CVE-2024-12087Rsync: path traversal vulnerability in rsync
Medium 6.5
In plain English
A medium-severity path traversal in rsync. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | rsync | 3.1.3-21.el8_10 | ALSA-2025:2600 |
| AlmaLinux:9 | rsync | 3.2.5-3.el9 | ALSA-2025:7050 |
| AlmaLinux:8 | rsync-daemon | 3.1.3-21.el8_10 | ALSA-2025:2600 |
| AlmaLinux:9 | rsync-daemon | 3.2.5-3.el9 | ALSA-2025:7050 |
| AlmaLinux:9 | rsync-rrsync | 3.2.5-3.el9 | ALSA-2025:7050 |
| Alpine:v3.20 | rsync | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine:v3.21 | rsync | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine:v3.22 | rsync | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine:v3.23 | rsync | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Alpine:v3.24 | rsync | 3.4.0-r0 | ALPINE-CVE-2024-12087 |
| Debian:12 | rsync | 3.2.7-1+deb12u1 | DSA-5843-1 |
| Debian:12 | rsync | 3.2.7-1+deb12u1 | DEBIAN-CVE-2024-12087 |
| Debian:13 | rsync | 3.3.0+ds1-3 | DEBIAN-CVE-2024-12087 |
| Debian:14 | rsync | 3.3.0+ds1-3 | DEBIAN-CVE-2024-12087 |
| Rocky Linux:8 | rsync | 0:3.1.3-21.el8_10 | RLSA-2025:2600 |
| Rocky Linux:9 | rsync | 0:3.2.5-3.el9 | RLSA-2025:7050 |
| Ubuntu:22.04:LTS | rsync | 3.2.7-0ubuntu0.22.04.3 | USN-7206-1 |
| Ubuntu:22.04:LTS | rsync | 3.2.7-0ubuntu0.22.04.3 | UBUNTU-CVE-2024-12087 |
| Ubuntu:24.04:LTS | rsync | 3.2.7-1ubuntu1.1 | UBUNTU-CVE-2024-12087 |
| Ubuntu:24.04:LTS | rsync | 3.2.7-1ubuntu1.1 | USN-7206-1 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
References
- RHBA-2025:6470 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23154 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23235 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23407 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23415 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23416 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23842 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23853 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23854 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23858 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2600 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:7050 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:8385 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-12087 vdb-entry, x_refsource_REDHAT
- RHBZ#2330672 issue-tracking, x_refsource_REDHAT
- https://kb.cert.org/vuls/id/952657
- https://github.com/google/security-research/security/advisories/GHSA-p5pg-x43v-mvqj exploit
- https://security.netapp.com/advisory/ntap-20250131-0002/
- https://lists.debian.org/debian-lts-announce/2025/01/msg00008.html
- https://www.kb.cert.org/vuls/id/952657