CVE-2022-29154: Input Validation

Published Jul 26, 2022
·
Updated

A flaw was found in rsync that is triggered by a victim rsync user/client connecting to a malicious rsync server. The server can copy and overwrite arbitrary files in the client's rsync target directory and subdirectories. This flaw allows a malicious server, or in some cases, another attacker who performs a man-in-the-middle attack, to potentially overwrite sensitive files on the client machine, resulting in further exploitation.

Other sources

An arbitrary file write vulnerability in the rsync utility that allows malicious remote servers to write arbitrary files inside the directories of connecting peers.

Red Hat

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/authorizedkeys file).

Rsync could allow a remote attacker to bypass security restrictions, caused by improper validation of file names. By utilize man-in-the-middle attack techniques, an attacker could exploit this vulnerability to write arbitrary files inside the directories of connecting peers.

IBM

Affected Software

13 affected componentsFixes available
redhat/rsync<0:3.1.2-11.el7_9
0:3.1.2-11.el7_9
redhat/rsync<0:3.1.3-14.el8_6.3
0:3.1.3-14.el8_6.3
redhat/rsync<0:3.1.3-6.el8_1.2
0:3.1.3-6.el8_1.2
redhat/rsync<0:3.1.3-7.el8_2.2
0:3.1.3-7.el8_2.2
redhat/rsync<0:3.1.3-12.el8_4.2
0:3.1.3-12.el8_4.2
redhat/rsync<0:3.2.3-9.el9_0.2
0:3.2.3-9.el9_0.2
redhat/rsync<3.2.5
3.2.5
IBM BM Security Guardium<=11.3
IBM Security Guardium<=11.4
IBM Security Guardium<=11.5
Samba rsync<3.2.5
Fedoraproject Fedora=35
Fedoraproject Fedora=36

Remediation

Information

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

Event History

Jul 26, 2022
Data Sourced
via Red Hat·08:11 AM
DescriptionSeverityAffected Software
Aug 2, 2022
CVE Published
12:00 AM
CVE Published
via MITRE·02:22 PM
Data Sourced
via MITRE·02:22 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this issue in rsync?

The vulnerability ID for this issue in rsync is CVE-2022-29154.

2

What is the severity of CVE-2022-29154?

The severity of CVE-2022-29154 is high.

3

How does the vulnerability in rsync allow an attacker to bypass security restrictions?

The vulnerability in rsync allows a remote attacker to bypass security restrictions by improperly validating file names and writing arbitrary files inside the directories of connecting peers.

4

Which versions of rsync are affected by CVE-2022-29154?

Versions of rsync before 3.2.5 are affected by CVE-2022-29154.

5

How can I fix the vulnerability in rsync?

To fix the vulnerability in rsync, you should update to version 3.2.5 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203