ZeroHour

CVE-2022-30333

KEV ransomware PoC ×2large

Directory Traversal in RARLAB UnRAR (Linux/UNIX) Enables Arbitrary File Writes

CISA: RARLAB UnRAR Directory Traversal Vulnerability

CVSS 3.1
7.5 high
EPSS
99%p100
Published
()
KEV added
AI analysis

RARLAB's UnRAR command-line decompression tool on Linux and UNIX, in versions before 6.12, contains a directory traversal flaw (CWE-22, with symlink-based path confusion per CWE-59) that lets a crafted RAR archive write files to arbitrary filesystem locations during an extract/unpack operation. It is triggered whenever an application passes an attacker-supplied archive to unrar, most prominently Zimbra Collaboration Suite, which unpacked RAR attachments from incoming email, enabling pre-authentication attacks against webmail tracked separately as CVE-2022-41352. By planting files at chosen paths — for example writing an SSH key to ~/.ssh/authorized_keys or dropping a web shell under a web root — an attacker can escalate an arbitrary file write into code execution on the server, requiring no privileges or user interaction per the CVSS vector. Only the Linux/UNIX UnRAR utility is affected; WinRAR and RAR for Android are not. The flaw is under active exploitation: CISA added it to the Known Exploited Vulnerabilities catalog on 2022-08-09 with known ransomware use, public PoCs exist, and EPSS estimates a ~99% probability of exploitation within 30 days.

What to do: Upgrade UnRAR to 6.12 or later on all Linux and UNIX systems and apply Debian's patched unrar package; Zimbra administrators should apply Zimbra's released security patches, which ship the fixed UnRAR. As an interim mitigation, restrict or monitor services that automatically extract RAR archives from untrusted sources, and hunt for indicators such as unexpected ~/.ssh/authorized_keys entries, planted symlinks, or web shells under web roots. Because the flaw is on CISA's KEV list with known ransomware use, treat patching as time-critical.

Affected
RARLAB UnRARall versions before 6.12 on Linux and UNIX (fixed in 6.12)
Debian Linux (unrar package)Debian builds shipping UnRAR prior to 6.12
Estimated exposure
largetens of thousands of internet-exposed servers (dominated by Zimbra mail servers that auto-extract RAR attachments), with the total UnRAR installed base on… — Estimated from the ubiquity of the unrar package in Debian/Ubuntu repositories (package popularity counts suggest a 10^5+ installed base) and public internet scans that consistently show tens of thousands of exposed Zimbra servers, the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

CISA Known Exploited Vulnerability
Affected
RARLAB UnRAR
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Known
Vendors
rarlabdebian
Products
unrar, debian linux
Weakness
CWE-22, CWE-59
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

In the news