Skip to content

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

HighCVSS 7.5 EPSS 2.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

45 packages: 30 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
archlinux arch linux All versions No fix listed No fix yet
gentoo linux All versions No fix listed No fix yet
redhat openshift All versions No fix listed No fix yet
suse linux All versions No fix listed No fix yet
alpine/rsync(Alpine v3.18) < 3.4.0-r0 3.4.0-r0 Fixed
alpine/rsync(Alpine v3.19) < 3.4.0-r0 3.4.0-r0 Fixed
alpine/rsync(Alpine v3.20) < 3.4.0-r0 3.4.0-r0 Fixed
alpine/rsync(Alpine v3.21) < 3.4.0-r0 3.4.0-r0 Fixed
alpine/rsync(Alpine v3.22) < 3.4.0-r0 3.4.0-r0 Fixed
alpine/rsync(Alpine v3.23) < 3.4.0-r0 3.4.0-r0 Fixed
alpine/rsync(Alpine v3.24) < 3.4.0-r0 3.4.0-r0 Fixed
azure linux rsync(Azure Linux 3.0) < 3.4.1-1 3.4.1-1 Fixed
cbl-mariner rsync(CBL-Mariner 2.0) < 3.4.1-1 3.4.1-1 Fixed
debian/rsync(Debian 12) < 3.2.7-1+deb12u1; = 3.2.7-1 3.2.7-1+deb12u1 Fixed
debian/rsync(Debian 13) < 3.3.0+ds1-3 3.3.0+ds1-3 Fixed
debian/rsync(Debian 14) < 3.3.0+ds1-3 3.3.0+ds1-3 Fixed
nixos < 24.11 24.11 Fixed
redhat discovery < 1.14.2-1748467619 1.14.2-1748467619 Fixed
redhat enterprise linux < 0:3.1.3-21.el8_10; < 0:3.2.5-3.el9; < 0:3.4.1-2.el10; = 8.0 +1 more 0:3.1.3-21.el8_10, 0:3.2.5-3.el9, 0:3.4.1-2.el10 Fixed
redhat rhel aus < 0:3.1.3-7.el8_2.6; < 0:3.1.3-12.el8_4.6; < 0:3.1.3-14.el8_6.9 0:3.1.3-7.el8_2.6, 0:3.1.3-12.el8_4.6, 0:3.1.3-14.el8_6.9 Fixed
redhat rhel e4s < 0:3.1.3-14.el8_6.9; < 0:3.1.3-20.el8_8.4; < 0:3.2.3-9.el9_0.4; < 0:3.2.3-19.el9_2.2 0:3.1.3-14.el8_6.9, 0:3.1.3-20.el8_8.4, 0:3.2.3-9.el9_0.4, 0:3.2.3-19.el9_2.2 Fixed
redhat rhel els < 0:3.0.6-12.el6_10.2; < 0:3.1.2-12.el7_9.2 0:3.0.6-12.el6_10.2, 0:3.1.2-12.el7_9.2 Fixed
redhat rhel eus < 0:3.2.3-19.el9_4.2 0:3.2.3-19.el9_4.2 Fixed
redhat rhel eus long life < 0:3.1.3-12.el8_4.6 0:3.1.3-12.el8_4.6 Fixed
redhat rhel tus < 0:3.1.3-14.el8_6.9; < 0:3.1.3-20.el8_8.4 0:3.1.3-14.el8_6.9, 0:3.1.3-20.el8_8.4 Fixed
rsync <= 3.3.0 after 3.3.0 Fixed
Samba rsync <= 3.3.0 after 3.3.0 Fixed
tritondatacenter smartos < 20250123 20250123 Fixed
ubuntu/rsync(Ubuntu 20.04) < 3.1.3-8ubuntu0.8; = 3.1.3-6; = 3.1.3-8; = 3.1.3-8ubuntu0.1 +5 more 3.1.3-8ubuntu0.8 Fixed
ubuntu/rsync(Ubuntu 22.04) < 3.2.7-0ubuntu0.22.04.3; = 3.2.3-4ubuntu1; = 3.2.3-4ubuntu2; = 3.2.3-8ubuntu1 +4 more 3.2.7-0ubuntu0.22.04.3 Fixed

… and 15 more packages.

Affected products

ProductAffected versionsFixed in
cbl-mariner rsync(CBL-Mariner:2.0) < 3.4.1-1 3.4.1-1
azure linux rsync(Azure Linux:3.0) < 3.4.1-1 3.4.1-1
debian/rsync(Debian:12) < 3.2.7-1+deb12u1 3.2.7-1+deb12u1
debian/rsync(Debian:12) = 3.2.7-1 No fix listed
debian/rsync(Debian:13) < 3.3.0+ds1-3 3.3.0+ds1-3
debian/rsync(Debian:14) < 3.3.0+ds1-3 3.3.0+ds1-3
ubuntu/rsync(Ubuntu:22.04) < 3.2.7-0ubuntu0.22.04.3 3.2.7-0ubuntu0.22.04.3
rsync <= 3.3.0 No fix listed
redhat enterprise linux < 0:3.4.1-2.el10 0:3.4.1-2.el10
redhat rhel els < 0:3.0.6-12.el6_10.2 0:3.0.6-12.el6_10.2
redhat rhel els < 0:3.1.2-12.el7_9.2 0:3.1.2-12.el7_9.2
redhat enterprise linux < 0:3.1.3-21.el8_10 0:3.1.3-21.el8_10
redhat rhel aus < 0:3.1.3-7.el8_2.6 0:3.1.3-7.el8_2.6
redhat rhel aus < 0:3.1.3-12.el8_4.6 0:3.1.3-12.el8_4.6
redhat rhel eus long life < 0:3.1.3-12.el8_4.6 0:3.1.3-12.el8_4.6
redhat rhel aus < 0:3.1.3-14.el8_6.9 0:3.1.3-14.el8_6.9
redhat rhel e4s < 0:3.1.3-14.el8_6.9 0:3.1.3-14.el8_6.9
redhat rhel tus < 0:3.1.3-14.el8_6.9 0:3.1.3-14.el8_6.9
redhat rhel e4s < 0:3.1.3-20.el8_8.4 0:3.1.3-20.el8_8.4
redhat rhel tus < 0:3.1.3-20.el8_8.4 0:3.1.3-20.el8_8.4
redhat enterprise linux < 0:3.2.5-3.el9 0:3.2.5-3.el9
redhat rhel e4s < 0:3.2.3-9.el9_0.4 0:3.2.3-9.el9_0.4
redhat rhel e4s < 0:3.2.3-19.el9_2.2 0:3.2.3-19.el9_2.2
redhat rhel eus < 0:3.2.3-19.el9_4.2 0:3.2.3-19.el9_4.2
redhat discovery < 1.14.2-1748467619 1.14.2-1748467619
Show 78 more
ProductAffected versionsFixed in
redhat openshift All versions No fix listed
alpine/rsync(Alpine:v3.18) < 3.4.0-r0 3.4.0-r0
alpine/rsync(Alpine:v3.19) < 3.4.0-r0 3.4.0-r0
alpine/rsync(Alpine:v3.20) < 3.4.0-r0 3.4.0-r0
alpine/rsync(Alpine:v3.21) < 3.4.0-r0 3.4.0-r0
alpine/rsync(Alpine:v3.22) < 3.4.0-r0 3.4.0-r0
alpine/rsync(Alpine:v3.23) < 3.4.0-r0 3.4.0-r0
alpine/rsync(Alpine:v3.24) < 3.4.0-r0 3.4.0-r0
ubuntu/rsync(Ubuntu:24.04) < 3.2.7-1ubuntu1.1 3.2.7-1ubuntu1.1
Samba rsync <= 3.3.0 No fix listed
almalinux = 8.0 No fix listed
almalinux = 9.0 No fix listed
almalinux = 10.0 No fix listed
archlinux arch linux All versions No fix listed
gentoo linux All versions No fix listed
nixos < 24.11 24.11
suse linux All versions No fix listed
tritondatacenter smartos < 20250123 20250123
redhat enterprise linux = 8.0 No fix listed
redhat enterprise linux = 9.0 No fix listed
redhat enterprise linux eus = 9.6 No fix listed
redhat enterprise linux for arm 64 = 8.0_aarch64 No fix listed
redhat enterprise linux for arm 64 = 9.0_aarch64 No fix listed
redhat enterprise linux for arm 64 eus = 9.6_aarch64 No fix listed
redhat enterprise linux for ibm z systems = 8.0_s390x No fix listed
redhat enterprise linux for ibm z systems = 9.0_s390x No fix listed
redhat enterprise linux for ibm z systems eus = 9.6_s390x No fix listed
redhat enterprise linux for power little endian = 8.0_ppc64le No fix listed
redhat enterprise linux for power little endian = 9.0_ppc64le No fix listed
redhat enterprise linux for power little endian eus = 9.6_ppc64le No fix listed
redhat enterprise linux server aus = 9.6 No fix listed
redhat enterprise linux server for power little endian update services for sap solutions = 9.6_ppc64le No fix listed
redhat enterprise linux update services for sap solutions = 9.6 No fix listed
ubuntu/rsync(Ubuntu:Pro:14.04) < 3.1.0-2ubuntu0.4+esm1 3.1.0-2ubuntu0.4+esm1
ubuntu/rsync(Ubuntu:Pro:14.04) = 3.0.9-4ubuntu1 No fix listed
ubuntu/rsync(Ubuntu:Pro:14.04) = 3.1.0-2 No fix listed
ubuntu/rsync(Ubuntu:Pro:14.04) = 3.1.0-2ubuntu0.1 No fix listed
ubuntu/rsync(Ubuntu:Pro:14.04) = 3.1.0-2ubuntu0.2 No fix listed
ubuntu/rsync(Ubuntu:Pro:14.04) = 3.1.0-2ubuntu0.3 No fix listed
ubuntu/rsync(Ubuntu:Pro:14.04) = 3.1.0-2ubuntu0.4 No fix listed
ubuntu/rsync(Ubuntu:Pro:16.04) < 3.1.1-3ubuntu1.3+esm3 3.1.1-3ubuntu1.3+esm3
ubuntu/rsync(Ubuntu:Pro:16.04) = 3.1.1-3 No fix listed
ubuntu/rsync(Ubuntu:Pro:16.04) = 3.1.1-3ubuntu1 No fix listed
ubuntu/rsync(Ubuntu:Pro:16.04) = 3.1.1-3ubuntu1.1 No fix listed
ubuntu/rsync(Ubuntu:Pro:16.04) = 3.1.1-3ubuntu1.2 No fix listed
ubuntu/rsync(Ubuntu:Pro:16.04) = 3.1.1-3ubuntu1.3 No fix listed
ubuntu/rsync(Ubuntu:Pro:16.04) = 3.1.1-3ubuntu1.3+esm1 No fix listed
ubuntu/rsync(Ubuntu:Pro:16.04) = 3.1.1-3ubuntu1.3+esm2 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) < 3.1.2-2.1ubuntu1.6+esm1 3.1.2-2.1ubuntu1.6+esm1
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1ubuntu1 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1ubuntu1.1 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1ubuntu1.2 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1ubuntu1.3 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1ubuntu1.4 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1ubuntu1.5 No fix listed
ubuntu/rsync(Ubuntu:Pro:18.04) = 3.1.2-2.1ubuntu1.6 No fix listed
ubuntu/rsync(Ubuntu:20.04) < 3.1.3-8ubuntu0.8 3.1.3-8ubuntu0.8
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-6 No fix listed
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-8 No fix listed
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-8ubuntu0.1 No fix listed
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-8ubuntu0.2 No fix listed
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-8ubuntu0.3 No fix listed
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-8ubuntu0.4 No fix listed
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-8ubuntu0.5 No fix listed
ubuntu/rsync(Ubuntu:20.04) = 3.1.3-8ubuntu0.7 No fix listed
ubuntu/rsync(Ubuntu:22.04) = 3.2.3-4ubuntu1 No fix listed
ubuntu/rsync(Ubuntu:22.04) = 3.2.3-4ubuntu2 No fix listed
ubuntu/rsync(Ubuntu:22.04) = 3.2.3-8ubuntu1 No fix listed
ubuntu/rsync(Ubuntu:22.04) = 3.2.3-8ubuntu2 No fix listed
ubuntu/rsync(Ubuntu:22.04) = 3.2.3-8ubuntu3 No fix listed
ubuntu/rsync(Ubuntu:22.04) = 3.2.3-8ubuntu3.1 No fix listed
ubuntu/rsync(Ubuntu:22.04) = 3.2.7-0ubuntu0.22.04.2 No fix listed
ubuntu/rsync(Ubuntu:24.04) = 3.2.7-1 No fix listed
ubuntu/rsync(Ubuntu:24.04) = 3.2.7-1build1 No fix listed
ubuntu/rsync(Ubuntu:24.04) = 3.2.7-1build2 No fix listed
ubuntu/rsync(Ubuntu:24.04) = 3.2.7-1ubuntu1 No fix listed

References