CVE-2022-30333KEV · OVERDUECWE-22CWE-59path-traversal

RARLAB UnRAR Directory Traversal Vulnerability

High · published May 9, 2022

Patch now

Confirmed exploited, and the score agrees

CVSS calls it high at 7.5. It is confirmed in active exploitation. It sits in the 99.9th percentile for exploit probability.

1516
days past CISA
deadline
CVSS v3.1
7.5
EPSS
99%
Percentile
99.9
In the wild
Confirmed
What it is

🚨 A sneaky directory traversal flaw in RARLAB UnRAR lets attackers write directly to your filesystem — it’s like handing a stranger your house keys with a map to find the valuables! 🔥 Think of UnRAR as a delivery service that dumps packages wherever the driver sees fit, including your sensitive files like a misplaced piece of mail in your mailbox. When the service doesn't check where it's dropping off, it can end up putting secret keys right in the open, inviting unwanted guests! An attacker could exploit this vulnerability to create or modify files in critical directories, such as injecting malicious content into your ~/.ssh/authorized_keys file. This could grant them unauthorized access to your system — a gateway for them to waltz in and take control of your sensitive data!

Put simply

Think of UnRAR as a delivery service that dumps packages wherever the driver sees fit, including your sensitive files like a misplaced piece of mail in your mailbox. When the service doesn't check where it's dropping off, it can end up putting secret keys right in the open, inviting unwanted guests! This vulnerability allows directory traversal during unpacking operations in RARLAB UnRAR versions prior to 6.12 on Linux and UNIX, enabling attackers to write files outside of specified directories.

What to do

An attacker could exploit this vulnerability to create or modify files in critical directories, such as injecting malicious content into your ~/.ssh/authorized_keys file. This could grant them unauthorized access to your system — a gateway for them to waltz in and take control of your sensitive data! Update UnRAR to version 6.12 or later immediately to patch this vulnerability. In the meantime, monitor your systems for any unauthorized file creations and consider implementing stricter access controls to sensitive directories. 🛡️ You’ve got this! Secure your system and keep those unauthorized guests out! 🔐✨

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.99233 · 99.9th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-59 · Improper Link Resolution Before File Access ('Link Following')
Published
2022-05-09T12:15Z
KEV added
2022-08-09 · due 2022-08-30
Affected products (2)
ProductVersionsFixed in
rarlab/unrar< 6.126.12
debian/debian_linuxall versions—
References (13)
EPSS history
Timeline
  • 09 AUG 00:00Z
    Added to CISA KEV — remediate by Aug 30
    kev
  • 09 MAY 00:00Z
    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…
    cvelistv5