Exploit database

Vulnerability

CVE-2022-30333

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

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

Description

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 Program

Exploit source choices

4 sources
UnRAR Path Traversal (CVE-2022-30333)
MSF-linux--fileformat--unrar_cve_2022_30333MetasploitLinux / remotePreferred

This module creates a RAR file that exploits CVE-2022-30333, which is a path-traversal vulnerability in unRAR that can extract an arbitrary file to an arbitrary location on a Linux system. UnRAR fixed this vulnerability in version 6.12 (open source version 6.1.7). The core issue is that when a symbolic link is unRAR'ed, Windows symbolic links are not properly validated on Linux systems and can therefore write a symbolic link that points anywhere on the filesystem. If a second file in the archive has the same name, it will be written to the symbolic link path.

2022-06-28unrar_cve_2022_30333.rb
UnRAR Path Traversal in Zimbra (CVE-2022-30333)
MSF-linux--http--zimbra_unrar_cve_2022_30333MetasploitLinux / remote

This module creates a RAR file that can be emailed to a Zimbra server to exploit CVE-2022-30333. If successful, it plants a JSP-based backdoor in the public web directory, then executes that backdoor. The core vulnerability is a path-traversal issue in unRAR that can extract an arbitrary file to an arbitrary location on a Linux system. This issue is exploitable on the following versions of Zimbra, provided UnRAR version 6.11 or earlier is installed: * Zimbra Collaboration 9.0.0 Patch 24 (and earlier) * Zimbra Collaboration 8.8.15 Patch 31 (and earlier)

2022-06-28zimbra_unrar_cve_2022_30333.rb
rbowes-r7/unrar-cve-2022-30333-poc
GH-99838ab83da0a05230c8461c461b4dbfGitHubUnofficial GitHub source

rbowes-r7/unrar-cve-2022-30333-poc source repository

2022-07-153 files · 14 stars
aslitsecurity/zimbra-cve-2022-30333
GH-6ada40b0915770fcb2b1a9a508681829GitHubUnofficial GitHub source

Zimbra unrar vulnerability. Now there are already POC available, it is safe to release our POC.

2022-07-263 files · 7 stars