Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-30370 Overview
CVE-2024-30370 is a Mark-of-the-Web (MOTW) bypass vulnerability in RARLAB WinRAR. The flaw resides in the archive extraction functionality, where a crafted archive entry causes WinRAR to create files on disk without the MOTW identifier. Windows relies on MOTW to apply additional security checks on files sourced from the internet, and bypassing it removes a critical defense layer. Exploitation requires user interaction, specifically opening and extracting a malicious archive. Attackers can chain this flaw with other vulnerabilities to execute arbitrary code in the context of the current user. The issue was reported through the Zero Day Initiative as ZDI-CAN-23156.
Critical Impact
Files extracted from attacker-controlled archives lose the Mark-of-the-Web tag, allowing malicious documents and executables to bypass Windows SmartScreen and Protected View warnings.
Affected Products
- RARLAB WinRAR 7.00 beta 4
- Prior WinRAR versions sharing the vulnerable extraction code path
- Windows systems relying on MOTW enforcement for downloaded archives
Discovery Timeline
- 2024-04-02 - CVE-2024-30370 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-30370
Vulnerability Analysis
The vulnerability is categorized under [CWE-693] Protection Mechanism Failure. WinRAR extracts files from archives but fails to propagate the Zone.Identifier Alternate Data Stream (ADS) to specific archive entries. When a user downloads an archive from the internet, Windows attaches an NTFS ADS marking the file as originating from an untrusted zone. Archive utilities are expected to carry this marker forward to every extracted file. In this case, a crafted archive entry evades that propagation, resulting in extracted content without MOTW.
Standalone, the flaw produces no direct code execution. Its practical impact emerges when combined with other weaknesses. For example, a malicious Office document extracted without MOTW will not trigger Protected View, and an executable will not generate a SmartScreen warning. Attackers routinely chain MOTW bypasses with macro-based payloads or signed-binary proxy execution techniques.
Root Cause
The root cause is improper handling of the NTFS Zone Identifier stream during archive extraction. WinRAR writes certain archive entries using a code path that does not reattach the Zone.Identifier ADS inherited from the parent archive. Vendor release notes acknowledge the fix in the RARLAB WinRAR changelog.
Attack Vector
The attack vector is network-based with required user interaction. An attacker hosts a crafted RAR or ZIP archive on a website or delivers it via email. The victim downloads the archive, which receives MOTW from the browser or mail client, and then extracts the contents using WinRAR. Specific entries inside the archive are written to disk without MOTW. The victim then opens the extracted file, bypassing Windows security prompts that would otherwise block or sandbox the content.
No verified public exploit code is available. Technical details are documented in the Zero Day Initiative Advisory ZDI-24-357 and the RARLAB Bug Fix Announcement.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2024-30370
Indicators of Compromise
- Files extracted from recently downloaded archives that lack a Zone.Identifier ADS when the parent archive has one.
- Execution of binaries or scripts from user-writable directories (%USERPROFILE%\Downloads, %TEMP%) shortly after WinRAR.exe process activity.
- Office documents opening without Protected View despite originating from an internet-sourced archive.
Detection Strategies
- Hunt for process lineage where WinRAR.exe spawns child processes that subsequently launch executables or scripting hosts such as powershell.exe, wscript.exe, or rundll32.exe.
- Use file integrity monitoring to flag newly created files missing the expected Zone.Identifier:$DATA stream when written by archive utilities.
- Correlate browser or email download events with WinRAR extraction and subsequent process execution within short time windows.
Monitoring Recommendations
- Enable detailed file system auditing for Alternate Data Stream creation on endpoints that process external archives.
- Collect command-line telemetry for WinRAR.exe and UnRAR.exe to identify extraction destinations and chained execution.
- Forward endpoint telemetry to a centralized data lake to correlate archive handling with downstream suspicious behavior.
How to Mitigate CVE-2024-30370
Immediate Actions Required
- Upgrade WinRAR to version 7.01 or later, which addresses the MOTW propagation defect per the vendor changelog.
- Inventory endpoints running vulnerable WinRAR builds, including the 7.00 beta releases, and prioritize patching for users who frequently handle external archives.
- Reinforce user awareness about extracting archives from untrusted sources and verifying file origins before execution.
Patch Information
RARLAB released a corrected build that properly propagates the Zone.Identifier stream to all extracted entries. Refer to the RARLAB Bug Fix Announcement for the specific version containing the fix and download the latest stable release from the vendor site.
Workarounds
- Restrict extraction of internet-sourced archives to sandboxed environments or virtual machines until patching is complete.
- Enforce Attack Surface Reduction (ASR) rules in Microsoft Defender to block Office child-process creation and executable content from email or webmail.
- Configure Windows SmartScreen and Protected View policies via Group Policy to apply stringent checks even on files lacking MOTW when launched from Downloads directories.
# Verify MOTW on an extracted file (PowerShell)
Get-Item .\extracted_file.docx -Stream Zone.Identifier
# Manually apply MOTW to extracted files as a compensating control
Set-Content -Path .\extracted_file.docx -Stream Zone.Identifier -Value "[ZoneTransfer]`nZoneId=3"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

