Vulnerability record · CVE-2025-6218 · published 21 June 2025
CVE-2025-6218: WinRAR path traversal in archive file handling leads to code execution
Rarlab · Winrar
WinRAR mishandles file paths inside archive files, allowing a crafted path to traverse out of the intended extraction directory (CWE-22). Because the traversal can place attacker-controlled files in locations the process later executes, it escalates from a path bug to remote code execution in the context of the current user. It matters because WinRAR is widely deployed and exploitation requires only that a user open a malicious archive or visit a malicious page.
Description
RARLAB WinRAR Directory Traversal Remote Code Execution Vulnerability. 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. The specific flaw exists within the handling of file paths within archive files. A crafted file path can cause the process to traverse to unintended directories. An attacker can leverage this vulnerability to execute code in the context of the current user. Was ZDI-CAN-27198.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Automated analysis
critical priorityIt is in CISA KEV with a near-certain EPSS score and public exploit references, and successful exploitation yields code execution as the user.
What it is
WinRAR mishandles file paths inside archive files, allowing a crafted path to traverse out of the intended extraction directory (CWE-22). Because the traversal can place attacker-controlled files in locations the process later executes, it escalates from a path bug to remote code execution in the context of the current user. It matters because WinRAR is widely deployed and exploitation requires only that a user open a malicious archive or visit a malicious page.
Impact
An attacker gains arbitrary code execution with the privileges of the user running WinRAR. That typically means full access to the user's files, credentials and any resources that user can reach.
Attack surface
Reached locally through the archive handling path: the CVSS vector is AV:L/PR:N/UI:R, so no authentication is needed but user interaction is required, consistent with the description that the target must open a malicious file or visit a malicious page.
Exploitation
CISA added it to KEV on 2025-12-09 with a 2025-12-30 remediation due date, and EPSS gives a 30-day probability of 0.90538 (99.795th percentile). Two references are tagged Exploit, indicating public exploit material exists; no ransomware campaign use is recorded.
What to do
- Update WinRAR to the vendor-fixed release referenced in the RARLAB release notes, then verify the installed version across all endpoints.
- If patching cannot be completed before the KEV due date, restrict or block opening untrusted archives and consider discontinuing WinRAR on exposed systems per CISA guidance.
- Enforce least privilege so users do not run WinRAR with administrative rights, limiting the impact of code execution.
- Block archive attachments and downloads from untrusted sources at mail and web gateways where operationally feasible.
Detection
- Monitor for WinRAR processes writing files outside expected extraction directories, especially into startup folders, user profile paths or system directories.
- Alert on WinRAR spawning child processes such as script interpreters or command shells, which is abnormal for normal extraction.
- Hunt for archive files containing path traversal sequences in entry names, and for archives delivered from external or newly registered domains.
- Review endpoint telemetry for file creation events where the parent process is WinRAR and the target path differs from the user-selected extraction folder.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2025-6218 to the Known Exploited Vulnerabilities catalog on 9 December 2025 as "RARLAB WinRAR Path Traversal Vulnerability". Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Federal deadline 30 December 2025.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://www.win-rar.com/singlenewsview.html?&tx_ttnews%5Btt_news%5D=276&cHash=388885bd3908a40726f535c026f94eb6 | Release Notes |
| https://www.zerodayinitiative.com/advisories/ZDI-25-409/ | Third Party AdvisoryVDB Entry |
| https://foresiet.com/blog/apt-c-08-winrar-directory-traversal-exploit/ | ExploitThird Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-6218 | US Government Resource |
| https://www.secpod.com/blog/archive-terror-dissecting-the-winrar-cve-2025-6218-exploit-apt-c-08s-stealth-move/ | ExploitThird Party Advisory |
Track CVE-2025-6218 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2025-6218), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.