GLSA-202309-04 : RAR, UnRAR: Arbitrary File Overwrite

high Nessus Plugin ID 181508

Description

The remote host is affected by the vulnerability described in GLSA-202309-04 (RAR, UnRAR: Arbitrary File Overwrite)

- RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) operation, as demonstrated by creating a ~/.ssh/authorized_keys file. NOTE: WinRAR and Android RAR are unaffected. (CVE-2022-30333)

- The vulnerability exists due to improper validation of array index when processing recovery volumes. A remote attacker can trick the victim to open a specially crafted archive and execute arbitrary code on the system. (CVE-2023-40477)

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

Solution

All RAR users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=app-arch/rar-6.23 All UnRAR users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=app-arch/unrar-6.2.10

See Also

https://security.gentoo.org/glsa/202309-04

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

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

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

Plugin Details

Severity: High

ID: 181508

File Name: gentoo_GLSA-202309-04.nasl

Version: 1.2

Type: local

Published: 9/17/2023

Updated: 10/25/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.0

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 4.4

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

CVSS Score Source: CVE-2022-30333

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 7.2

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

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

Vulnerability Information

CPE: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:rar, p-cpe:/a:gentoo:linux:unrar

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: 9/17/2023

Vulnerability Publication Date: 5/9/2022

CISA Known Exploited Vulnerability Due Dates: 8/30/2022

Exploitable With

Metasploit (UnRAR Path Traversal in Zimbra (CVE-2022-30333))

Reference Information

CVE: CVE-2022-30333, CVE-2023-40477