ZDI-25-045: 7-Zip Mark-of-the-Web Bypass Vulnerability

Published Jan 19, 2025
·
Updated

This vulnerability allows remote attackers to bypass the Mark-of-the-Web protection mechanism on affected installations of 7-Zip. 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 archived files. When extracting files from a crafted archive that bears the Mark-of-the-Web, 7-Zip does not propagate the Mark-of-the-Web to the extracted files. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current user.

Other sources

This vulnerability allows remote attackers to bypass the Mark-of-the-Web protection mechanism on affected installations of 7-Zip. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The ZDI has assigned a CVSS rating of 7.0. The following CVEs are assigned: CVE-2025-0411.

ZDI

Affected Software

1 affected component
7-Zip 7-Zip

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch ZDI-25-045
  2. Configuration

    When extracting from archives that bear Mark-of-the-Web, ensure 7-Zip propagates the Mark-of-the-Web to the extracted files so the Mark-of-the-Web protection mechanism is not bypassed (issue noted: MoTW is not propagated during extraction of crafted archives).

    7-Zip Mark-of-the-Web (MoTW) propagation during extraction = Propagate MoTW to extracted files (do not omit)
  3. Compensating control

    Avoid opening or extracting malicious archives/files, since user interaction is required (e.g., do not open files or visit pages hosting crafted archives intended to bypass Mark-of-the-Web).

Event History

Jan 19, 2025
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software
Advisory Published
via ZDI·06:00 AM

Frequently Asked Questions

1

What is the severity of ZDI-25-045?

The severity of ZDI-25-045 is considered critical due to the potential for remote code execution.

2

How do I fix ZDI-25-045?

To fix ZDI-25-045, update your 7-Zip installation to the latest version provided by the vendor.

3

What does ZDI-25-045 exploit?

ZDI-25-045 exploits a flaw that allows remote attackers to bypass the Mark-of-the-Web protection mechanism.

4

Is user interaction required to exploit ZDI-25-045?

Yes, user interaction is required for ZDI-25-045, as the target must visit a malicious page or open a malicious file.

5

What software is affected by ZDI-25-045?

ZDI-25-045 affects installations of the 7-Zip file archiver software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203