Skip to content
OpenAdvisories
Unscored Public exploit CVE-2022-29154 EUVD-2022-33562GHSA-5jgp-wh79-75wg

An issue was discovered in rsync before 3.2.5 that allows malicious remote servers to write arbitrary files inside the directories of conne…

Published Aug 2, 2022 · Updated Aug 3, 2024 · Assigned by mitre

Description

An issue was discovered in rsync before 3.2.5 that allows malicious remote servers to write arbitrary files inside the directories of connecting peers. The server chooses which files/directories are sent to the client. However, the rsync client performs insufficient validation of file names. A malicious rsync server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the rsync client target directory and subdirectories (for example, overwrite the .ssh/authorized_keys file).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rsync 3.2.5-1 —
Debian 13 rsync 3.2.5-1 —
Debian 12 rsync 3.2.5-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS rsync 3.2.7-0ubuntu0.22.04.2 USN-5921-1
Ubuntu 20.04 LTS rsync 3.1.3-8ubuntu0.5 USN-5921-1
Ubuntu 18.04 LTS rsync 3.1.2-2.1ubuntu1.6 USN-5921-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS rsync No fix yet —
Ubuntu Pro 14.04 LTS rsync No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 rsync +1 3.2.3-9.el9_0.2 RHSA-2022:6181
RHEL 8 rsync +1 3.1.3-14.el8_6.3 RHSA-2022:6180
RHEL 7 rsync 3.1.2-11.el7_9 RHSA-2022:6170
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 redhat-virtualization-host +1 4.5.2-202209140405_8.6 RHSA-2022:6551
RHEL 8.4 EUS rsync +1 3.1.3-12.el8_4.2 RHSA-2022:6171
RHEL 8.2 EUS rsync +1 3.1.3-7.el8_2.2 RHSA-2022:6172
RHEL 8.1 E4S rsync +1 3.1.3-6.el8_1.2 RHSA-2022:6173

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 rsync +1 3.1.3-14.el8_6.3 ALSA-2022:6180

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 rsync 3.2.3-9.el9_0.2 RLSA-2022:6181
Rocky Linux 8 rsync 3.1.3-14.el8_6.3 RLSA-2022:6180
ReleasePackageFixed inAdvisory
SLES 15 SP4 rsync 3.2.3-150400.3.3.1 SUSE-SU-2022:2825-1
SLES 15 SP3 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLES 15 SP2 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLES 15 SP1 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLES 15 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
Show 27 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 rsync 3.1.3-3.9.1 SUSE-SU-2022:2858-1
SLES 12 SP4 rsync 3.1.0-13.19.1 SUSE-SU-2022:2859-1
SLES 12 SP3 rsync 3.1.0-13.19.1 SUSE-SU-2022:2859-1
SLES 12 SP2 rsync 3.1.0-13.19.1 SUSE-SU-2022:2859-1
SLES for SAP 15 SP3 rsync 3.2.3-150000.4.23.2 SUSE-RU-2023:3370-1
SLES for SAP 15 SP2 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLES for SAP 15 SP1 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLES for SAP 15 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
SLES for SAP 12 SP5 rsync 3.1.3-3.9.1 SUSE-SU-2022:2858-1
SLES for SAP 12 SP4 rsync 3.1.0-13.19.1 SUSE-SU-2022:2859-1
SLE Real Time 15 SP3 rsync 3.2.3-150000.4.23.2 SUSE-RU-2023:3370-1
SLE Micro 5.2 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLE Micro 5.1 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLE HPC 15 SP3 rsync 3.2.3-150000.4.23.2 SUSE-RU-2023:3370-1
SLE HPC 15 SP2 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLE HPC 15 SP1 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1, SUSE-RU-2023:3370-1
SLE HPC 15 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
SUSE OpenStack Cloud Crowbar 9 rsync 3.1.0-13.19.1 SUSE-SU-2022:2859-1
SUSE OpenStack Cloud 9 rsync 3.1.0-13.19.1 SUSE-SU-2022:2859-1
SUSE Manager Server 4.2 rsync 3.2.3-150000.4.23.2 SUSE-RU-2023:3370-1
SUSE Manager Server 4.1 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
SUSE Manager Retail Branch Server 4.1 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
SUSE Manager Proxy 4.2 rsync 3.2.3-150000.4.23.2 SUSE-RU-2023:3370-1
SUSE Manager Proxy 4.1 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
SUSE Enterprise Storage 7.1 rsync 3.2.3-150000.4.23.2 SUSE-RU-2023:3370-1
SUSE Enterprise Storage 7 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
SUSE Enterprise Storage 6 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed rsync 3.2.4-3.1 openSUSE-SU-2024:12232-1
openSUSE Leap 15.4 rsync 3.2.3-150400.3.3.1 SUSE-SU-2022:2825-1
openSUSE Leap 15.3 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.2 rsync 3.1.3-150000.4.13.1 SUSE-SU-2022:2959-2
ReleasePackageFixed inAdvisory
Alpine v3.24 rsync 3.2.4-r2 —
Alpine v3.23 rsync 3.2.4-r2 —
Alpine v3.22 rsync 3.2.4-r2 —
Alpine v3.21 rsync 3.2.4-r2 —
Alpine v3.20 rsync 3.2.4-r2 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 rsync 3.2.4-r2 —
Alpine v3.18 rsync 3.2.4-r2 —
Alpine v3.17 rsync 3.2.4-r2 —
Alpine v3.16 rsync 3.2.4-r2 —
Alpine v3.15 rsync 3.2.4-r0 —
Alpine v3.14 rsync 3.2.4-r0 —
Alpine v3.13 rsync 3.2.4-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 rsync +1 3.2.6-1.amzn2023.0.3 ALAS2023-2023-002
Amazon Linux 2 rsync 3.1.2-11.amzn2.0.1 ALAS2-2022-1873

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) rsync 3.2.5-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 rsync +1 3.2.3-9.el9_0.2 ELSA-2022-6181
Oracle Linux 8 rsync +1 3.1.3-14.el8_6.3 ELSA-2022-6180
Oracle Linux 7 rsync 3.1.2-11.el7_9 ELSA-2022-6170

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 32

References