GLSA-202405-22 : rsync: Multiple Vulnerabilities

high Nessus Plugin ID 195162

Description

The remote host is affected by the vulnerability described in GLSA-202405-22 (rsync: Multiple Vulnerabilities)

- zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches. (CVE-2018-25032)

- A flaw was found in rsync in versions since 3.2.0pre1. Rsync improperly validates certificate with host mismatch vulnerability. A remote, unauthenticated attacker could exploit the flaw by performing a man-in- the-middle attack using a valid certificate for another hostname which could compromise confidentiality and integrity of data transmitted using rsync-ssl. The highest threat from this vulnerability is to data confidentiality and integrity. This flaw affects rsync versions before 3.2.4. (CVE-2020-14387)

- 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). (CVE-2022-29154)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

All rsync users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=net-misc/rsync-3.2.5_pre1

See Also

https://security.gentoo.org/glsa/202405-22

https://bugs.gentoo.org/show_bug.cgi?id=792576

https://bugs.gentoo.org/show_bug.cgi?id=838724

https://bugs.gentoo.org/show_bug.cgi?id=862876

Plugin Details

Severity: High

ID: 195162

File Name: gentoo_GLSA-202405-22.nasl

Version: 1.0

Type: local

Published: 5/8/2024

Updated: 5/8/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.0

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2020-14387

CVSS v3

Risk Factor: High

Base Score: 7.4

Temporal Score: 6.7

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS Score Source: CVE-2022-29154

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:rsync, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/8/2024

Vulnerability Publication Date: 5/27/2021

Reference Information

CVE: CVE-2018-25032, CVE-2020-14387, CVE-2022-29154