Skip to content
Misconfiguration Advisory Intermediate CVE-2025-0411

7-Zip Mark-of-the-Web Bypass Vulnerability

7-Zip failed to propagate the Mark-of-the-Web from a downloaded archive to the files it extracted. An attacker could use this to run arbitrary code as the current user after the victim opened a malicious archive.

Peter Girnus - Trend Micro Zero Day Initiative Follow

Originally disclosed on Zero Day Initiative

High 7.0 View original

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.

Peter Girnus - Trend Micro Zero Day Initiative, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, 7-Zip's archive extraction code did not copy the Mark-of-the-Web alternate data stream from the source archive to each extracted file.

Impact

An attacker could execute arbitrary code in the context of the current user, but the victim must first visit a malicious page or open a malicious file.

What the attacker needed

Victim opens a crafted archive; archive carries Mark-of-the-Web

The fix

The vulnerability was fixed in 7-Zip version 24.09.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Mark-of-the-Web is a tag Windows adds to files downloaded from the internet so that opening them shows extra warnings. 7-Zip did not copy that tag onto files it unpacked from a tagged archive, so those files looked safe and could run without the usual warning. This let an attacker get code to run on the victim's computer.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Peter Girnus - Trend Micro Zero Day Initiative

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.