Skip to content
Path traversal Write-up Intermediate

Cve 2025 8088 Winrar Path Traversal Exploitation

WinRAR versions up to 7.12 are vulnerable to a path traversal flaw (CVE-2025-8088) that allows a crafted RAR archive to write files outside the extraction directory. An attacker could use this to place a malicious shortcut in the Windows Startup folder, leading to code execution when the user logs in.

Binary Exploiter Follow

Published on systemweakness.com

Here is a detailed overview of exploiting the WinRAR Path Traversal zero-day vulnerability (CVE-2025–8088). This article demonstrates how attackers can exploit it to drop a file in the Windows Startup folder and execute it upon login.

Binary Exploiter, on systemweakness.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the archive extraction process fails to properly sanitise file paths, allowing directory traversal sequences to escape the intended extraction directory.

Impact

An attacker could achieve code execution by placing a malicious shortcut in the Startup folder, which runs automatically upon login, without requiring the user to execute any file after extraction.

What the attacker needed

WinRAR version 7.12 or earlier; Victim extracts a crafted RAR archive; Victim logs in or restarts the system

The fix

The vulnerability was fixed in WinRAR 7.13 and later versions.

How it was found

  1. Create a batch file that writes a test file to the Desktop.
  2. Use PowerShell to create a shortcut (.lnk) pointing to the batch file.
  3. Manually copy the shortcut to the Startup folder temporarily.
  4. Use WinRAR's command-line tool to create an archive that stores the shortcut with a path traversal to the Startup folder.
  5. Delete the shortcut from the real Startup folder.
  6. Extract the archive with a vulnerable WinRAR version and restart the system to see the payload execute.

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 write-up has not been written yet. The Original tab links to the source.

WinRAR is a program for opening compressed files. A path traversal bug lets a malicious archive trick the program into saving files in places it shouldn't, like your Startup folder. Anything in that folder runs automatically when you log in, so an attacker could get their program to run without you doing anything after extraction.

What is Path traversal?

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

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.