CVE-2022-30333
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.
What to do
This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2022-08-09). If you run an affected version, patch or mitigate now.
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | libclamunrar | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | rar | Fixed | 2:6.23-1 | UBUNTU-CVE-2022-30333 |
| Ubuntu 24.04 | unrar-nonfree | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libclamunrar | Fixed | 0.103.11-0ubuntu0.22.04.1 | UBUNTU-CVE-2022-30333 |
| Ubuntu 22.04 | rar | Fixed | 2:6.23-1~22.04.1 | UBUNTU-CVE-2022-30333 |
| Ubuntu 22.04 | unrar-nonfree | Fixed | 1:6.1.5-1ubuntu0.1 | UBUNTU-CVE-2022-30333 |
| Ubuntu 20.04 | libclamunrar | Fixed | 0.103.11-0ubuntu0.20.04.1 | UBUNTU-CVE-2022-30333 |
| Ubuntu 20.04 | rar | Fixed | 2:6.23-1~20.04.1 | UBUNTU-CVE-2022-30333 |
| Ubuntu 20.04 | unrar-nonfree | Fixed | 1:5.6.6-2ubuntu0.1 | UBUNTU-CVE-2022-30333 |
| Ubuntu 18.04 | libclamunrar | Will not fix per debian, unrar 6.12 corresponds to source version 6.1.7 The unrar-nonfree, rar, and libclamunrar packages are in multiverse and not covered by ESM. Marking… | UBUNTU-CVE-2022-30333 | |
| Ubuntu 18.04 | rar | Will not fix per debian, unrar 6.12 corresponds to source version 6.1.7 The unrar-nonfree, rar, and libclamunrar packages are in multiverse and not covered by ESM. Marking… | UBUNTU-CVE-2022-30333 | |
| Ubuntu 18.04 | unrar-nonfree | Will not fix per debian, unrar 6.12 corresponds to source version 6.1.7 The unrar-nonfree, rar, and libclamunrar packages are in multiverse and not covered by ESM. Marking… | UBUNTU-CVE-2022-30333 | |
| Ubuntu 16.04 | libclamunrar | Will not fix per debian, unrar 6.12 corresponds to source version 6.1.7 The unrar-nonfree, rar, and libclamunrar packages are in multiverse and not covered by ESM. Marking… | UBUNTU-CVE-2022-30333 | |
| Ubuntu 16.04 | rar | Will not fix per debian, unrar 6.12 corresponds to source version 6.1.7 The unrar-nonfree, rar, and libclamunrar packages are in multiverse and not covered by ESM. Marking… | UBUNTU-CVE-2022-30333 | |
| Ubuntu 16.04 | unrar-nonfree | Fix pending | UBUNTU-CVE-2022-30333 | |
| Ubuntu 14.04 | libclamunrar | Will not fix per debian, unrar 6.12 corresponds to source version 6.1.7 The unrar-nonfree, rar, and libclamunrar packages are in multiverse and not covered by ESM. Marking… | ||
| Ubuntu 14.04 | rar | Will not fix per debian, unrar 6.12 corresponds to source version 6.1.7 The unrar-nonfree, rar, and libclamunrar packages are in multiverse and not covered by ESM. Marking… | ||
| Debian 14 | rar | Fixed | 2:6.20~b1-0.1 | DEBIAN-CVE-2022-30333 |
| Debian 14 | unrar-nonfree | Fixed | 1:6.1.7-1 | DEBIAN-CVE-2022-30333 |
| Debian 13 | rar | Fixed | 2:6.20~b1-0.1 | DEBIAN-CVE-2022-30333 |
| Debian 13 | unrar-nonfree | Fixed | 1:6.1.7-1 | DEBIAN-CVE-2022-30333 |
| Debian 12 | rar | Fixed | 2:6.20~b1-0.1 | DEBIAN-CVE-2022-30333 |
| Debian 12 | unrar-nonfree | Fixed | 1:6.1.7-1 | DEBIAN-CVE-2022-30333 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/202309-04 (vendor-advisory)
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
- https://lists.debian.org/debian-lts-announce/2023/08/msg00022.html
- https://security.gentoo.org/glsa/202309-04
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.