← Vulnerability feed

Vulnerability record · CVE-2022-30333 · published 9 May 2022

CVE-2022-30333: UnRAR path traversal allows arbitrary file write on Linux and UNIX

Rarlab · Unrar

RARLAB UnRAR before 6.12 on Linux and UNIX fails to properly sanitize paths during extraction, allowing directory traversal writes outside the intended destination. An attacker can craft a RAR archive that writes files such as ~/.ssh/authorized_keys, leading to unauthorized access. WinRAR and Android RAR are unaffected.

7.5 CVSS 3.1 High CISA KEV since 9 Aug 2022 Known ransomware use EPSS 99% · top 0.1% CWE-22 · Path traversalCWE-59 · Link following
7.5CVSS 3.1 base score, v2 5.0
99%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
2Affected product versions listed by NVD
13References, 4 tagged exploit
4 Aug 2026Last modified by NVD

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.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityIt is in CISA KEV with known ransomware use, has a very high EPSS score, and enables pre-auth remote code execution in common deployments like Zimbra.

What it is

RARLAB UnRAR before 6.12 on Linux and UNIX fails to properly sanitize paths during extraction, allowing directory traversal writes outside the intended destination. An attacker can craft a RAR archive that writes files such as ~/.ssh/authorized_keys, leading to unauthorized access. WinRAR and Android RAR are unaffected.

Impact

An attacker can write arbitrary files to locations writable by the extracting user, enabling SSH key injection and potential remote code execution or privilege escalation depending on the context.

Attack surface

Reached by supplying a malicious RAR archive to a service or user that extracts it with vulnerable UnRAR; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).

Exploitation

CISA KEV lists it as known exploited with ransomware campaign use, and EPSS is 0.99085 (99.931st percentile); references include exploit write-ups for Zimbra pre-auth RCE via UnRAR.

What to do

  • Upgrade UnRAR to 6.12 or later on all Linux and UNIX systems.
  • Apply vendor updates for Debian and Gentoo packages that bundle UnRAR.
  • Restrict or sandbox archive extraction services so they run with minimal filesystem permissions.
  • Avoid extracting untrusted RAR archives on systems where UnRAR cannot be patched immediately.

Detection

  • Monitor for creation or modification of ~/.ssh/authorized_keys and other sensitive files by archive extraction processes.
  • Alert on UnRAR processes writing outside expected extraction directories.
  • Review logs for RAR archives containing traversal sequences (../) or absolute paths.
  • Hunt for unexpected SSH key additions on hosts that process RAR uploads.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2022-30333 to the Known Exploited Vulnerabilities catalog on 9 August 2022 as "RARLAB UnRAR Directory Traversal Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 30 August 2022.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-30333 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2022-30333), CISA KEV, FIRST EPSS (scores of 2026-09-17). This page is refreshed as NVD updates the record.