CVE-2026-58052: 7-Zip RAR5 Mark-of-the-Web Bypass on Windows
7-Zip for Windows has a flaw in how it handles specially crafted RAR5 archive files. When extracting such an archive, 7-Zip fails to properly maintain the 'Mark-of-the-Web' (MotW)—a security marker that Windows uses to warn users about potentially unsafe files downloaded from the internet. An attacker can exploit this by embedding malicious stream records in a RAR5 file that bypass 7-Zip's protection and allow the tool to extract content that appears safe to Windows, defeating SmartScreen warnings and potentially tricking users into running malware.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 3.3 LOW · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- Weaknesses (CWE)
- CWE-693
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-28 / 2026-07-14
NVD description (verbatim)
7-Zip for Windows through 26.01 fails to preserve the Mark-of-the-Web when extracting a crafted RAR5 archive, because its guard that suppresses an archive-supplied Zone.Identifier stream matches the exact name 'Zone.Identifier' while a RAR5 STM record named ':Zone.Identifier:$DATA' is not matched and NTFS canonicalizes it to the same stream, overwriting the propagated Internet-zone marker with ZoneId=0. A second STM record named '::$DATA' overwrites the extracted file's default data stream, letting an attacker defeat SmartScreen/MotW warnings and spoof file content.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from insufficient stream validation in 7-Zip's RAR5 extraction logic. When processing RAR5 STM (stream) records, 7-Zip uses a guard that only matches the exact string 'Zone.Identifier' to suppress archive-supplied zone markers. However, a crafted RAR5 archive can include a stream named ':Zone.Identifier:$DATA', which NTFS canonicalizes to the same stream as 'Zone.Identifier', bypassing the guard. This overwrites the propagated Internet-zone marker with ZoneId=0, effectively removing the MotW indicator. Additionally, a second STM record named '::$DATA' can overwrite the extracted file's default data stream, allowing arbitrary file content injection. The root cause is CWE-693 (Protection Mechanism Failure), stemming from improper handling of alternative stream naming conventions in NTFS.
Business impact
Organizations relying on 7-Zip for secure file extraction may unknowingly extract malware-laden files that appear safe to Windows security mechanisms. Users could bypass SmartScreen and other file-origin warnings, increasing the risk of successful phishing and drive-by-download attacks. The impact is primarily user-facing but compounds existing social engineering threats. For enterprises using 7-Zip in automated or end-user workflows, this creates a supply-chain trust gap where extraction tools undermine downstream security controls.
Affected systems
7-Zip for Windows through version 26.01 is affected. The vulnerability is specific to Windows NTFS systems where stream canonicalization applies. Non-Windows installations or versions after 26.01 (if patched) are not subject to this flaw. Organizations should audit environments where 7-Zip is deployed for archive processing, particularly in user-facing contexts or untrusted input handling.
Exploitability
Exploitation requires user interaction: an attacker must convince a user to extract a malicious RAR5 file using 7-Zip. The attack surface is local (AV:L), with no network component, and requires no elevated privileges. The bar for crafting a malicious RAR5 archive is moderate—an attacker needs to understand NTFS stream mechanics and RAR5 STM record encoding. However, once deployed, the payload bypasses multiple defensive layers (MotW, SmartScreen), making post-extraction execution more likely. The CVSS score of 3.3 (LOW) reflects the local, user-interaction requirement, though the integrity impact (I:L) captures file content tampering.
Remediation
Organizations should upgrade 7-Zip to a version after 26.01 that properly validates stream names against NTFS canonicalization rules. Verify the vendor's advisory for the specific patched version number and release date. Interim mitigation includes educating users to verify file properties and disable automatic execution of extracted content, though these are not technical fixes. Consider restricting 7-Zip usage to trusted archives or implementing content sandboxing for extracted files.
Patch guidance
Monitor the 7-Zip project for an updated release that addresses improper stream name validation. When available, deploy the patched version organization-wide, prioritizing systems where users extract untrusted RAR5 archives. Test the patch in a non-production environment to ensure compatibility with existing workflows. Verify against the official 7-Zip advisory to confirm the fix includes stream canonicalization handling.
Detection guidance
Detection is difficult at the network level due to the local attack vector, but endpoint monitoring can flag suspicious 7-Zip extraction activity. Look for processes spawning executables from recently extracted archives, or files with MotW stripped after 7-Zip processing. File integrity monitoring can detect unauthorized stream overwrites on NTFS volumes. Organizations with SIEM capability should correlate 7-Zip extraction with subsequent SmartScreen bypass or unsigned executable execution. Consider behavioral heuristics that detect extraction of RAR5 files followed by immediate execution of contained binaries.
Why prioritize this
Although scored as LOW severity, this vulnerability deserves attention because it directly undermines Windows' built-in file-safety warnings. The attack chain—malicious RAR5 → 7-Zip extraction → bypassed MotW → user execution—is realistic and common in phishing campaigns. The flaw is specific and actionable (requiring 7-Zip upgrade), making it suitable for near-term patching cycles. Prioritize based on the prevalence of 7-Zip in your user base and the frequency of external archive handling.
Risk score, explained
CVSS 3.3 reflects a LOW-severity local vulnerability requiring user interaction to trigger. The attack vector is local (AV:L) because the malicious archive must be extracted by the victim. Attack complexity is low (AC:L), as no special conditions are needed beyond a crafted RAR5 file. No privileges are required (PR:N), and the impact is limited to integrity (I:L)—file content modification—with no confidentiality or availability impact. The score appropriately captures the user-interaction gate, but does not weight the downstream risk of bypassing security controls, which may justify prioritization above the numerical score in some environments.
Frequently asked questions
Can I be infected just by downloading a malicious RAR5 file?
No. The attack requires you to extract the RAR5 file using 7-Zip. Once extracted, the attacker's file will appear safe to Windows (no MotW warning), but it does not execute automatically. You must then open or run the extracted file for infection to occur.
Does this affect 7-Zip on non-Windows systems?
No. The vulnerability relies on NTFS stream canonicalization, which is specific to Windows. Linux and macOS versions of 7-Zip are not affected.
What should I do if I've already extracted files with 7-Zip 26.01?
Review any extracted RAR5 archives for suspicious content, particularly executable files. Check file properties to see if MotW is present. If you extracted untrusted archives, consider re-downloading and re-extracting them after patching 7-Zip. For critical files, manually verify integrity and content.
Is this vulnerability in CISA's KEV catalog?
No, it is not currently listed in CISA's Known Exploited Vulnerabilities catalog. However, the lack of KEV status does not indicate the vulnerability is unimportant; it reflects the recency of disclosure or limited evidence of active exploitation at the time of publication.
This analysis is based on publicly disclosed vulnerability information current as of the publication date. No exploit code or detailed attack steps are provided. Organizations should verify patch availability and compatibility with their environment by consulting the official 7-Zip project advisory. The risk assessment assumes standard Windows security configurations; environments with additional controls (e.g., application whitelisting, sandboxing) may face reduced risk. This document is for informational purposes and does not constitute security advice for any specific system or organization. Source: NVD (public-domain), retrieved 2026-08-06. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2025-52609LOWHCL iControl Missing Security Headers XSS Vulnerability
- CVE-2026-11247LOWChrome CustomTabs Cross-Origin Data Leak on Android
- CVE-2026-11684LOWChrome Network Policy Enforcement Vulnerability – Cross-Origin Data Leak Risk
- CVE-2026-3472LOWMattermost AI Bot Data Exfiltration via Markdown Image Injection
- CVE-2026-45459LOWMicrosoft Excel Protection Mechanism Bypass – Low-Risk Information Disclosure
- CVE-2025-24284HIGHmacOS Sandbox Escape Vulnerability – Sequoia 15.4 Patch Required
- CVE-2025-30431MEDIUMmacOS Private Information Disclosure Vulnerability – Patch Guidance
- CVE-2025-48571MEDIUMAndroid Bluetooth SMS Interception Vulnerability (CVSS 4.3)