Skip to content
OpenAdvisories
Critical · 9.8 Known exploited · Ransomware Public exploit CVE-2022-30333 EUVD-2022-52276GHSA-h4mr-p94x-gf79

RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) operation, as demons…

Published May 9, 2022 · Updated Oct 1, 2026 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rar 2:6.20~b1-0.1 —
Debian 14 unrar-nonfree 1:6.1.7-1 —
Debian 13 rar 2:6.20~b1-0.1 —
Debian 13 unrar-nonfree 1:6.1.7-1 —
Debian 12 rar 2:6.20~b1-0.1 —
Debian 12 unrar-nonfree 1:6.1.7-1 —
Debian 10 rar 2:6.20-0.1~deb10u1 DLA-3534-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS rar 2:6.23-1 —
Ubuntu 22.04 LTS libclamunrar 0.103.11-0ubuntu0.22.04.1 USN-6569-1
Ubuntu 22.04 LTS rar 2:6.23-1~22.04.1 USN-7349-1
Ubuntu 22.04 LTS unrar-nonfree 1:6.1.5-1ubuntu0.1 USN-7350-1
Ubuntu 20.04 LTS libclamunrar 0.103.11-0ubuntu0.20.04.1 USN-6569-1
Ubuntu 20.04 LTS rar 2:6.23-1~20.04.1 USN-7349-1
Ubuntu 20.04 LTS unrar-nonfree 1:5.6.6-2ubuntu0.1 USN-7350-1
Ubuntu 18.04 LTS rar +2 No fix yet —
Ubuntu 16.04 LTS rar +2 No fix yet —
ReleasePackageFixed inAdvisory
SLES 12 SP5 unrar 5.6.1-4.8.1 SUSE-SU-2022:1760-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 unrar 5.6.1-4.8.1 SUSE-SU-2022:1760-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 2 modules

GitHub 5 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References