---
title: "CVE-2022-29154\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2022-29154?format=md
keywords: index, follow
---

# CVE-2022-29154

Publication date 2 August 2022

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.4 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2022-29154?format=md#impact-score)

Toggle side navigation

## 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).

[Read the notes from the security team](https://ubuntu.com/security/CVE-2022-29154?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| rsync | 23.04 lunar | Not affected |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Fixed 3.2.7-0ubuntu0.22.04.2 |
| 20.04 LTS focal | Fixed 3.1.3-8ubuntu0.5 |
| 18.04 LTS bionic | Fixed 3.1.2-2.1ubuntu1.6 |
| 16.04 LTS xenial | Ignored end of standard support |
| 14.04 LTS trusty | Ignored end of standard support |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2022-29154?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

two additional commits were added later on...need to check if
more go in before the official release

---

### [rodrigo-zaiden](https://launchpad.net/~rodrigo-zaiden)

Another commit was found to be part of the collection for
this CVE. 4 in total seems to address it. The missing commit
was added in historical order in the Patches section here.

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

many more commits were added into 3.2.5 than what is listed below
3.2.5 introduced regressions which were fixed in 3.2.6 and 3.2.7

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| rsync | * Upstream:   <https://git.samba.org/?p=rsync.git;a=commit;h=6b8db0f6440b28d26ef807d17517715c47e62bd9> * Upstream:   <https://git.samba.org/?p=rsync.git;a=commit;h=635d8c0632fa9549441ed468ff2cc167800f7fab> * Upstream:   <https://git.samba.org/?p=rsync.git;a=commit;h=71090b7e2caefb5894c10b02d34e2c57e4de848b> * Upstream:   <https://git.samba.org/?p=rsync.git;a=commit;h=b7231c7d02cfb65d291af74ff66e7d8c507ee871> * Upstream:   <https://git.samba.org/?p=rsync.git;a=commit;h=7e5424b806e8eea053016268ad186276e9083b77> * Upstream:   <https://git.samba.org/?p=rsync.git;a=commit;h=3d7015afa223494e3318495c2f5de9cb49229da9> * Upstream:   <https://git.samba.org/?p=rsync.git;a=commit;h=2f7c583143bc6e80902139c23d9d7283f88fbc6a> * Vendor:   <https://git.centos.org/rpms/rsync/blob/c7/f/SOURCES/rsync-3.1.2-cve-2022-29154.patch> * Vendor:   <https://git.centos.org/rpms/rsync/blob/c7/f/SOURCES/rsync-3.1.2-filtering-rules.patch> * Vendor:   <https://git.centos.org/rpms/rsync/blob/c8/f/SOURCES/rsync-3.1.3-cve-2022-29154.patch> * Vendor:   <https://git.centos.org/rpms/rsync/blob/c8/f/SOURCES/rsync-3.1.3-filtering-rules.patch> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.4 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | High |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.4 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29154)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-29154)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2022-29154)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2022-29154)

### Related Ubuntu Security Notices (USN)

+ [USN-5921-1](https://usn.ubuntu.com/USN-5921-1)
+ rsync vulnerabilities
+ 6 March 2023

### Other references

* <https://download.samba.org/pub/rsync/NEWS>
* <https://lists.samba.org/archive/rsync/2022-August/032860.html>
* <https://www.cve.org/CVERecord?id=CVE-2022-29154>
