Skip to content
Path traversal Advisory Intermediate CVE-2025-6218

RARLAB WinRAR Directory Traversal Remote Code Execution Vulnerability

A flaw in how WinRAR handles file paths inside archive files lets a crafted path make the process write to unintended directories. An attacker could use this to run code as the current user, but the victim must open a malicious file or visit a malicious page.

whs3-detonator Follow

Originally disclosed on Zero Day Initiative

High 7.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of RARLAB WinRAR. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

whs3-detonator, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the archive extraction logic did not properly validate or normalise file paths, allowing directory traversal outside the intended extraction folder.

Impact

An attacker could execute arbitrary code in the context of the current user, though the target must first open a malicious file or visit a malicious page.

What the attacker needed

Victim opens a malicious archive; affected WinRAR version installed

The fix

RARLAB issued an update to correct the vulnerability, so users should install the patched version.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An archive is a file that holds other files, like a zip or rar. WinRAR unpacks those files, and it is supposed to keep them inside the folder you chose. Here it did not check the paths properly, so a file inside the archive could be placed somewhere else on the computer, and that can be used to run the attacker's code.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.