Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-6218: RARLAB WinRAR Archive Path Traversal Remote Code Execution

Published Jun 21, 2025 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.8High · v3
EPSS90.6%100th percentile
CISA KEVYesAdded Dec 9, 2025
In the wildActivePer CISA KEV
Vendor
WinRAR GmbH
IdentifiersCVE-2025-6218CWE-22 · Improper Limitation of a Pathname…

CVE-2025-6218 is a path traversal vulnerability affecting RARLAB WinRAR for Windows versions 7.11 and earlier. Insufficient validation of relative paths embedded in archive entries allows specially crafted archives to extract files outside the intended destination directory. An attacker can place malicious files in arbitrary locations writable by the current user, including the Windows Startup folder, potentially achieving arbitrary code execution in that user's security context. Exploitation requires user interaction with attacker-controlled material that triggers vulnerable archive extraction. The vulnerability was previously tracked as ZDI-CAN-27198 and is distinct from the Alternate Data Streams-based CVE-2025-8088.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises extraction-directory boundaries and permits attacker-controlled file placement outside the selected destination. Placement in an automatically executed location can provide code execution and persistence under the logged-in user's privileges. The vulnerability does not itself establish privilege escalation beyond that security context. Exploitation in the wild has been reported.

Mitigation

If you can’t patch tonight, do this now.

Until updated, avoid opening or extracting untrusted archives with affected WinRAR installations. Where operationally feasible, quarantine unsolicited RAR email attachments. Monitor for unexpected files in the Windows Startup folder and execution originating from newly created startup items. These measures reduce exposure or support detection but do not replace patching.

Remediation

Patch, then assume compromise.

Upgrade WinRAR for Windows to version 7.12 or later, which fixes CVE-2025-6218. Prefer the latest supported release; version 7.13 also addresses the separate CVE-2025-8088 vulnerability. Inventory installations and explicitly deploy and verify updates because WinRAR does not update automatically.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2025-6218_WinRARThis repository demonstrates a proof-of-concept exploit for CVE-2025-6218, a path traversal vulnerability in WinRAR versions 7.11 and earlier on Windows. The exploit consists of a malicious RAR archive ('archivo_exploit.rar') containing a file entry with a path that escapes the extraction directory (using '..\..\Users\victima\Desktop\importante.txt'). When extracted with a vulnerable version of WinRAR, this results in the overwriting of the specified file outside the extraction directory with attacker-controlled content ('MALWARE INYECTADO'). The repository includes a batch script ('crear_rar_malicioso.bat') to generate such a malicious archive, a sample target file ('importante.txt'), and a detailed README.md explaining the vulnerability, setup, and demonstration steps. The exploit is local in nature, requiring the victim to extract the malicious archive. No network endpoints are involved. The repository is structured for educational purposes and provides a clear demonstration of the risk posed by path traversal vulnerabilities in archive extraction utilities.speinador · Disclosed Jun 27, 2025 · batch · localPoCCVE-2025-6218This repository provides a proof-of-concept (POC) exploit for CVE-2025-6218, a directory traversal vulnerability in RARLAB WinRAR (up to version 7.11) that can lead to remote code execution (RCE) via arbitrary file write. The main exploit script, 'cve-2025-6218.py', uses a custom RAR archive creation library (implemented in the other Python modules) to generate a malicious RAR file ('test.rar'). This archive contains a file with a specially crafted path ('/.. /.. /test.txt') that, when extracted by a vulnerable WinRAR installation, will be written outside the intended extraction directory. The repository is structured as a modular RAR file manipulation toolkit, with separate modules for block and extra area handling, file attributes, and utility functions. The exploit demonstrates the vulnerability but does not include a full RCE chain; it focuses on arbitrary file write via path traversal. No network endpoints are involved; exploitation requires user interaction to extract the archive.ignis-sec · Disclosed Jun 29, 2025 · python · localPoCCVE-2025-6218-POCThis repository provides a proof-of-concept (POC) exploit for CVE-2025-6218, a vulnerability in WinRAR (versions 7.11 and earlier) related to improper handling of archive extraction paths. The main file, 'CVE-2025-6218.bat', is a batch script that creates a simple batch payload ('POC.bat') to launch calc.exe, then uses WinRAR to craft a ZIP archive that, when extracted using WinRAR's 'Extract to {folder}\' option, places the payload in the Windows Startup folder. This results in the payload executing automatically on the next user login, demonstrating arbitrary code execution. The exploit requires WinRAR to be installed in its default location and is only effective on vulnerable versions. The repository includes a README with detailed usage instructions and a LICENSE file. No network endpoints are involved; the attack vector is local, relying on user interaction with the crafted ZIP file.skimask1690 · Disclosed Jul 1, 2025 · batch · localPoCCVE-2025-6218-POCThis repository provides a proof-of-concept exploit for a directory traversal vulnerability in RARLAB WinRAR (CVE-2025-6218 / ZDI-CAN-27198). The exploit consists of a Python script ('zip_payload_generator.py') that generates a malicious ZIP archive. The script takes a user-supplied payload file (such as a batch script) and embeds it in the ZIP with multiple directory traversal sequences, targeting the Windows Startup folder ('AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'). When a victim extracts the ZIP using a vulnerable version of WinRAR, the payload is placed in the Startup folder and will execute on the next user login, resulting in remote code execution. The script also allows inclusion of a decoy file to make the archive appear legitimate. The repository is structured with a README.md explaining the vulnerability and usage, and the Python script implementing the exploit logic. No network endpoints are involved; the attack is local but requires user interaction to extract the ZIP file.mulwareX · Disclosed Jul 3, 2025 · python · local (user-assisted via malicious ZIP file)PoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
WinRAR GmbHWinrarapplication
FAQ

Frequently asked questions

Is CVE-2025-6218 exploited in the wild?
Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Dec 9, 2025.
Is there a public exploit for CVE-2025-6218?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2025-6218, the earliest disclosed Jun 27, 2025.
Is there a patch for CVE-2025-6218?
Upgrade WinRAR for Windows to version 7.12 or later, which fixes CVE-2025-6218. Prefer the latest supported release; version 7.13 also addresses the separate CVE-2025-8088 vulnerability.
What products are affected by CVE-2025-6218?
WinRAR GmbH Winrar.
How severe is CVE-2025-6218?
CVE-2025-6218 has a CVSS v3 score of 7.8 (High) and an EPSS score of 90.6% (100th percentile) as of Nov 17, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence10Every report linking this CVE to a named adversary.
Associated malware8Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity107Community discussion across Reddit, Mastodon, and other social sources.