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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | unrar | 5.6.1-4.8.1 | SUSE-SU-2022:1760-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
Metasploit 2 modules
-
UnRAR Path Traversal (CVE-2022-30333)
exploit/linux/fileformat/unrar_cve_2022_30333
-
UnRAR Path Traversal in Zimbra (CVE-2022-30333)
exploit/linux/http/zimbra_unrar_cve_2022_30333
GitHub 5 repositories
-
rbowes-r7/unrar-cve-2022-30333-poc ★ 14 · Jul 15, 2022
-
TheL1ghtVn/CVE-2022-30333-PoC ★ 13 · Jul 5, 2022
-
aslitsecurity/Zimbra-CVE-2022-30333 ★ 7 · Jul 26, 2022
Zimbra unrar vulnerability. Now there are already POC available, it is safe to release our POC.
-
paradox0909/cve-2022-30333_online_rar_extracor ★ 0 · Jun 10, 2024
-
RakhithJK/CVE-2022-30333 ★ 0 · Aug 15, 2022
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 5
- USN-7350-1 unrar-nonfree vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-7349-1 rar vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6569-1 libclamunrar vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- DLA-3534-1 rar - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:1760-1 Security update for unrar SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://www.rarlab.com/rar_add.htm
- https://www.rarlab.com/rar/rarlinux-x32-612.tar.gz
- https://blog.sonarsource.com/zimbra-pre-auth-rce-via-unrar-0day/
- http://packetstormsecurity.com/files/167989/Zimbra-UnRAR-Path-Traversal.html
- [debian-lts-announce] 20230817 [SECURITY] [DLA 3534-1] rar security update mailing-list
- GLSA-202309-04 vendor-advisory