
Note: Repository under development. This project will receive future updates with additional analyses, analysis scripts (non-exploit), and presentation material. New versions will be published as soon as they are available.
This repository documents the analysis, the study process, and the proof of concept (PoC) for the Directory Traversal vulnerability (CWE-35) in WinRAR (CVE-2025-8088).
The flaw affects WinRAR versions for Windows prior to 7.13 and was classified with High severity (Base Score 8.8).
The success of CVE-2025-8088 lies in the simplicity of the interaction required from the victim: code execution is triggered merely by extracting a malicious file.
The exploit's main target is the Windows startup folder (AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\).
This pattern was used by threat groups such as RomCom to deploy backdoors that granted full access to compromised computers.
Developing a robust proof of concept requires an in-depth study of the binary structures of the RAR format and the peculiarities of the Windows operating system.
The vulnerability is exploited through the manipulation of RAR file headers. Attackers cannot simply rename a file; they must force WinRAR to accept a malicious path, which is stored in the file structure.
File header and the Service header, are formatted. The Name length field and the Name field (which contains the path) within the file header are modified...\..\..\).struct, used to interpret bytes as packed binary data.The study revealed that a major challenge for exploitation was the uncertainty about the exact extraction directory (Desktop, Downloads, etc.).
File.txt files). Each file is configured to attempt traversing a different number of parent directories (example: ..\Startup\payload.bat, then ..\..\Startup\payload.bat, up to 20 depths).To embed the payload stealthily, the research uses an exclusive feature of the Windows NTFS file system: Alternate Data Streams (ADS).
RELATIVE_DROP_PATH, are the main reasons why generating the exploit requires a Windows environment.The CVE-2025-8088 vulnerability has been actively exploited (in the wild) and is listed in the CISA KEV (Known Exploited Vulnerabilities) catalog.
The most critical defense is updating, since exploitation depends on outdated software:
Study Analogy: Imagine the RAR file as a postal parcel. Path Traversal is like filling in the delivery address with repeated "return to sender" commands (
../). The technical study involved discovering exactly which part of the parcel label (the RAR header) needed to be tampered with and how many "return" commands would be needed (the multi-depth strategy) to ensure that, no matter where the mail service (WinRAR) started, the package would be deposited in the safe (the Startup folder). The simple act of "accepting the package" (extracting) ensures infection.