cve.bz

CVE-2022-29154 Improper Input Validation

7.4 highExploit referenceEPSS 2.3%Fix available

High (7.4). EPSS 2.3% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-29154 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29154?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29154?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-29154 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
samba:rsyncbefore 3.2.5
fedoraproject:fedora35
fedoraproject:fedora36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rsync3.2.5-1DEBIAN-CVE-2022-29154
Ubuntu18.04:LTSrsync3.1.2-2.1ubuntu1.6UBUNTU-CVE-2022-29154 USN-5921-1
Ubuntu20.04:LTSrsync3.1.3-8ubuntu0.5UBUNTU-CVE-2022-29154 USN-5921-1
Ubuntu22.04:LTSrsync3.2.7-0ubuntu0.22.04.2UBUNTU-CVE-2022-29154 USN-5921-1
UbuntuPro:14.04:LTS, Pro:16.04:LTSrsyncno fix listedUBUNTU-CVE-2022-29154
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationrsync, rsync-debuginfo0:3.1.2-11.el7_9RHSA-2022:6170
Red Hatenterprise_linux:8::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-14.el8_6.3RHSA-2022:6180
Red Hatenterprise_linux:9::appstreamrsync-daemon0:3.2.3-9.el9_0.2RHSA-2022:6181
Red Hatenterprise_linux:9::baseosrsync, rsync-debuginfo, rsync-debugsource0:3.2.3-9.el9_0.2RHSA-2022:6181
Red Hatrhel_e4s:8.1::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-6.el8_1.2RHSA-2022:6173
Red Hatrhel_eus:8.2::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-7.el8_2.2RHSA-2022:6172
Red Hatrhel_eus:8.4::baseosrsync, rsync-daemon, rsync-debuginfo and 1 more0:3.1.3-12.el8_4.2RHSA-2022:6171
Red Hatrhev_hypervisor:4.4::el8redhat-virtualization-host, redhat-virtualization-host-image-update0:4.5.2-202209140405_8.6RHSA-2022:6551
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 19 morersync3.1.3-150000.4.13.1SUSE-SU-2022:2959-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 13 morersync3.2.3-150000.4.23.2SUSE-RU-2023:3370-1
SUSELinux Enterprise Module for Basesystem 15 SP4rsync3.2.3-150400.3.3.1SUSE-SU-2022:2825-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 3 morersync3.1.0-13.19.1SUSE-SU-2022:2859-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5rsync3.1.3-3.9.1SUSE-SU-2022:2858-1
openSUSELeap 15.3rsync3.1.3-150000.4.13.1SUSE-SU-2022:2959-1
openSUSELeap 15.4rsync3.2.3-150400.3.3.1SUSE-SU-2022:2825-1
openSUSELeap Micro 5.2rsync3.1.3-150000.4.13.1SUSE-SU-2022:2959-2
openSUSETumbleweedrsync3.2.4-3.1openSUSE-SU-2024:12232-1
AlmaLinux8rsync, rsync-daemon3.1.3-14.el8_6.3ALSA-2022:6180
Rocky Linux8rsync0:3.1.3-14.el8_6.3RLSA-2022:6180
Rocky Linux9rsync0:3.2.3-9.el9_0.2RLSA-2022:6181
Alpinev3.13, v3.14, v3.15rsync3.2.4-r0ALPINE-CVE-2022-29154
Alpinev3.16, v3.17, v3.18 and 6 morersync3.2.4-r2ALPINE-CVE-2022-29154
Azure Linux2rsync3.2.5-1AZL-10461

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Only connecting to trusted Rsync servers over trusted channels would help to mitigate this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7rsync-0:3.1.2-11.el7_9Fixed 2022-08-24RHSA-2022:6170
Red Hat Enterprise Linux 8rsync-0:3.1.3-14.el8_6.3Fixed 2022-08-24RHSA-2022:6180
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsrsync-0:3.1.3-6.el8_1.2Fixed 2022-08-24RHSA-2022:6173
Red Hat Enterprise Linux 8.2 Extended Update Supportrsync-0:3.1.3-7.el8_2.2Fixed 2022-08-24RHSA-2022:6172
Red Hat Enterprise Linux 8.4 Extended Update Supportrsync-0:3.1.3-12.el8_4.2Fixed 2022-08-24RHSA-2022:6171
Red Hat Enterprise Linux 9rsync-0:3.2.3-9.el9_0.2Fixed 2022-08-24RHSA-2022:6181
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.5.2-202209140405_8.6Fixed 2022-09-19RHSA-2022:6551
Red Hat Enterprise Linux 6rsyncOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-29154.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-105-08ABB M2M Gateway2025-04-07EnergyABB M2M Gateway ARM600, firmware versions = 4.1.2 <= 5.0.3, ABB M2M Gateway SW, software versions = 5.0.1 <= 5.0.3none listed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON