/

CVE-2025-60835

Severity:

HIGH RISK

(7.8)

Directory Traversal (CWE-35) in IZArc unrar.dll Module

CVE-2025-60835

Deferred

Vulnerability type

Category:

Directory Traversal

CWE:

CWE-35

Impact:

Arbitrary File Write Outside Intended Directory

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A directory traversal flaw in IZArc's unrar.dll component allows crafted archive entries to escape the intended extraction directory.

Under certain conditions, an attacker-controlled archive can cause files to be written to arbitrary paths on the victim's system, potentially overwriting or planting malicious content.

Affected context

This vulnerability occurs when IZArc processes RAR archives using the unrar.dll component and does not adequately sanitize file paths contained in archive entries.

It becomes relevant in scenarios where users open or extract archives from untrusted or partially trusted sources, and the extraction target is assumed to be confined to a specific directory.

The issue is most concerning on systems where the user has sufficient privileges to overwrite sensitive files or place executables that may later be invoked.

Exploit preconditions

  • Attack surface: RAR archive parsing and extraction via IZArc using unrar.dll.
  • Required access: Ability to supply or influence a RAR archive opened by the victim (e.g., email attachment, download, shared file).
  • Trigger point: The victim initiates extraction or browsing of the malicious archive using IZArc.
  • Why exploitation is possible: The unrar.dll component does not enforce proper normalization and validation of embedded file paths, allowing sequences like ../ or absolute paths to redirect extraction to unintended locations.

Why this happens

The underlying bug class is directory traversal, mapped to CWE-35. The unrar.dll component appears to trust path information embedded in RAR entries without sufficient canonicalization or restriction to the chosen extraction root.

When path segments such as ../ or specially crafted absolute paths are not stripped or rejected, the extraction routine can write files outside the designated directory.

Abstractly, this is an insecure pattern where user-controlled filesystem paths are used directly in file creation or overwrite operations instead of being constrained to a safe, normalized base path.

Potential impact

  • An attacker-controlled archive may cause arbitrary files to be written outside the intended extraction directory.
  • Malicious content could be planted in user startup folders or application directories.
  • Existing files, including configuration or data files, could be overwritten, potentially degrading system integrity.
  • In certain environments, this could facilitate execution of attacker-supplied code when overwritten or planted files are later run.

General mitigation guidance

Mitigation typically centers on robust path handling and reducing trust in archive metadata. Secure patterns include:

  • Canonicalizing and normalizing all paths from archive entries before use, ensuring they remain under the chosen extraction root.
  • Explicitly rejecting entries containing traversal sequences (e.g., ../) or absolute paths, rather than attempting to "fix" them.
  • Enforcing a strict policy that all extracted files must reside within a single, validated base directory.
  • Running archive tools under accounts with minimal privileges and avoiding extraction to sensitive system directories.
  • Educating users to treat archives from untrusted sources cautiously and to extract them into isolated, non-sensitive locations.

How teams detect issues like this

Detection efforts can focus on both code-level and operational signals:

  • Static analysis rules that flag direct use of user-controlled path strings in file operations without normalization or base-path enforcement.
  • Code review practices that scrutinize archive parsing routines, looking for missing checks on directory traversal sequences and absolute paths.
  • Runtime monitoring or endpoint protection policies that detect applications creating or overwriting files in sensitive directories when processing archives.
  • Use of automated security testing tools to fuzz archive inputs and observe whether files are written outside the intended extraction location.

Sources

SourceLink
github.comgithub.com/OV-0-VO/Public-references/blob/main/CVE-2025-60835.md
github.comgithub.com/OV-0-VO/Public-references/commit/834a2be23292cbb305053a5d78d4d95c096e43b5
izarc.orgizarc.org/
rarlab.comrarlab.com/rar_add.htm

Frequently asked

questions

Not necessarily. It primarily enables writing files outside the extraction directory. Whether that leads to full compromise depends on what locations can be targeted and how the system uses those files.

The attacker must be able to provide a malicious RAR archive that the victim opens with IZArc. No direct access to the victim's filesystem is required beyond the victim's decision to extract the archive.

Always normalize and validate archive entry paths against a fixed base directory, reject any entry that attempts traversal or uses absolute paths, and ensure file operations never escape the designated extraction root.

Adopt a defensive design where filesystem paths derived from untrusted input are treated as data to be constrained, not trusted instructions. Combine strict path normalization, explicit checks for traversal indicators, least-privilege execution, and security-focused code review around all file handling logic.

Find out what's already
exploitable in your codebase.