GLSA-202208-15 : isync: Multiple Vulnerabilities

critical Nessus Plugin ID 164046

Description

The remote host is affected by the vulnerability described in GLSA-202208-15 (isync: Multiple Vulnerabilities)

- A flaw was found in mbsync before v1.3.5 and v1.4.1. Validations of the mailbox names returned by IMAP LIST/LSUB do not occur allowing a malicious or compromised server to use specially crafted mailbox names containing '..' path components to access data outside the designated mailbox on the opposite end of the synchronization channel. The highest threat from this vulnerability is to data confidentiality and integrity. (CVE-2021-20247)

- A flaw was found in mbsync before v1.3.6 and v1.4.2, where an unchecked pointer cast allows a malicious or compromised server to write an arbitrary integer value past the end of a heap-allocated structure by issuing an unexpected APPENDUID response. This could be plausibly exploited for remote code execution on the client. (CVE-2021-3578)

- A flaw was found in mbsync versions prior to 1.4.4. Due to inadequate handling of extremely large (>=2GiB) IMAP literals, malicious or compromised IMAP servers, and hypothetically even external email senders, could cause several different buffer overflows, which could conceivably be exploited for remote code execution. (CVE-2021-3657)

- A flaw was found in mbsync in isync 1.4.0 through 1.4.3. Due to an unchecked condition, a malicious or compromised IMAP server could use a crafted mail message that lacks headers (i.e., one that starts with an empty line) to provoke a heap overflow, which could conceivably be exploited for remote code execution.
(CVE-2021-44143)

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

Solution

All isync users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=net-mail/isync-1.4.4

See Also

https://security.gentoo.org/glsa/202208-15

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

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

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

Plugin Details

Severity: Critical

ID: 164046

File Name: gentoo_GLSA-202208-15.nasl

Version: 1.3

Type: local

Published: 8/11/2022

Updated: 10/16/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.0

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2021-44143

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:isync, 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: 8/10/2022

Vulnerability Publication Date: 2/22/2021

Reference Information

CVE: CVE-2021-20247, CVE-2021-3578, CVE-2021-3657, CVE-2021-44143