Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-30333: Directory traversal in RARLAB UnRAR on Linux and UNIX

Published May 9, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS55.4%99th percentile
CISA KEVYesAdded Aug 9, 2022
In the wildActivePer CISA KEV
Vendors
Debian ProjectWinRAR GmbH
IdentifiersCVE-2022-30333CWE-22 · Improper Limitation of a Pathname…

CVE-2022-30333 is a directory traversal vulnerability in RARLAB UnRAR before version 6.12 on Linux and UNIX. During extraction of a crafted RAR archive, malicious archive paths can cause files to be created or overwritten outside the intended extraction directory. Zimbra Collaboration Suite deployments that use vulnerable UnRAR versions to inspect email attachments expose this vulnerability through automatic archive extraction during spam or malware checks. WinRAR and Android RAR are unaffected.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An attacker can create or overwrite files outside the extraction destination, compromising filesystem integrity. Sensitive SSH authorization material is one demonstrated target. In affected Zimbra deployments, malicious email attachments can trigger these writes during server-side inspection without the recipient opening or extracting the attachment. Exploitation against Zimbra Collaboration Suite has been observed.

Mitigation

If you can’t patch tonight, do this now.

Avoid extracting suspicious or untrusted RAR archives with vulnerable UnRAR versions. For Zimbra deployments, replace UnRAR-based attachment extraction with the vendor-supported 7zip configuration. Investigate potentially compromised servers; quarantine and reimage compromised hosts and replace affected account credentials.

Remediation

Patch, then assume compromise.

Upgrade RARLAB UnRAR to version 6.12 or later. For Zimbra Collaboration Suite, apply current vendor updates and ensure attachment processing uses the vendor's configuration change to 7zip instead of UnRAR.

Public exploits

Exploits

4 exploits validated by Mallory's analysis.

View more in app →
unrar_cve_2022_30333.rbThis repository contains a single Metasploit module (modules/exploits/linux/fileformat/unrar_cve_2022_30333.rb) that exploits CVE-2022-30333, a path traversal vulnerability in unRAR on Linux. The exploit works by creating a malicious RAR archive containing a symlink and a payload file. When the archive is extracted with a vulnerable version of unRAR, the symlink allows the payload file to be written to an arbitrary location on the filesystem, potentially leading to code execution or system compromise. The module allows the user to specify a custom payload file or generate one, as well as control the target extraction path and symlink filename. The attack vector is local, requiring the victim to extract the malicious archive. The only file in the repository is a Ruby script compatible with the Metasploit framework, and it is fully operational for generating weaponized RAR files targeting unpatched unRAR installations on Linux.Disclosed Jun 28, 2022 · Framework: metasploit · ruby · localWeaponizedzimbra_unrar_cve_2022_30333.rbThis repository contains a single Metasploit module targeting CVE-2022-30333, a path traversal vulnerability in unRAR as used by Zimbra Collaboration Suite on Linux. The exploit generates a malicious RAR file that, when processed by a vulnerable Zimbra server (typically via email), writes a JSP-based web shell into the public web directory using path traversal. The module then attempts to trigger the web shell via HTTP requests, resulting in remote code execution (default payload: Meterpreter reverse shell). The exploit is operational, requiring the attacker to send the crafted RAR file to any user on the target Zimbra server. The module is well-structured, with clear options for customizing the payload location and filename, and includes logic to check for successful exploitation. The main attack vector is via email (RAR attachment), and the exploit targets specific file paths on the Zimbra server. No hardcoded IPs or domains are present; the exploit is generic for any vulnerable Zimbra instance.Disclosed Jun 28, 2022 · Framework: metasploit · ruby · network · emailWeaponizedCVE-2022-30333This repository provides a proof-of-concept exploit for CVE-2022-30333, a path traversal vulnerability in unRAR versions prior to 6.11. The main exploit script (cve-2022-30333.rb) is a Ruby program that generates a malicious .rar archive. The archive is crafted such that, when extracted by a vulnerable unRAR, it writes an attacker-supplied file (payload) to an arbitrary location on the filesystem, as specified by the attacker (including via path traversal). This can be used to plant web shells or other backdoors, as demonstrated in the README with an example targeting Zimbra's web directory. The exploit does not include a payload itself but allows the user to supply any file as the payload. The repository consists of a single exploit script, a README with usage instructions and context, and a .gitignore. No network endpoints are hardcoded; the attack vector is local file extraction. The exploit is a POC and not part of a framework.J0hnbX · Disclosed Jul 22, 2022 · ruby · localPoCZimbra-CVE-2022-30333This repository provides a proof-of-concept exploit for CVE-2022-30333, a vulnerability in Zimbra's use of the UNRAR utility (up to version 6.11). The exploit consists of a Python script (CVE-2022-30333_webroot.py) that takes a user-supplied RAR archive containing a webshell (JSP file) and crafts a malicious RAR file. When this file is processed by a vulnerable Zimbra server, it results in the webshell being written to the webroot, allowing remote code execution via HTTP. The repository includes a placeholder for the webshell (root_ver/shell.jsp) and a README with usage instructions. The main attack vector is network-based, requiring the attacker to deliver the malicious archive to the target server (e.g., via email). The exploit is a POC and requires the attacker to supply their own webshell.aslitsecurity · Disclosed Jul 26, 2022 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
WinRAR GmbHUnrarapplication
FAQ

Frequently asked questions

Is CVE-2022-30333 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 9, 2022.
Is there a public exploit for CVE-2022-30333?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2022-30333, the earliest disclosed Jun 28, 2022.
Is there a patch for CVE-2022-30333?
Upgrade RARLAB UnRAR to version 6.12 or later. For Zimbra Collaboration Suite, apply current vendor updates and ensure attachment processing uses the vendor's configuration change to 7zip instead of UnRAR.
What products are affected by CVE-2022-30333?
WinRAR GmbH Unrar and Debian Project Debian Linux.
How severe is CVE-2022-30333?
CVE-2022-30333 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 55.4% (99th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.