Policy bypass in SafeBrowsing (CVE-2026-11266)
A local Chromium patch to the minizip library incorrectly overwrites the physical filename length with the Unicode Path Extra Field length, causing a Central Directory traversal desynchronization. An attacker could craft a ZIP archive that hides malicious files from Safe Browsing scans while remaining extractable by standard tools.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 56 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the security team.
Overview: A local Chromium patch to the minizip library incorrectly overwrites the physical filename size with the Unicode Path Extra Field length. This causes a Central Directory traversal desynchronization, allowing an attacker to craft a ZIP archive that hides malicious files from Safe Browsing scans while remaining extractable by standard tools.
Affected files:
third_party/zlib/contrib/minizip/unzip.cthird_party/zlib/google/zip_reader.ccchrome/utility/safe_browsing/zip_analyzer.cc
Estimated timestamp from git blame: 2025-05-20
Summary
A vulnerability in Chromium's local modifications to the minizip library (third_party/zlib/contrib/minizip/unzip.c) allows for a ZIP central directory traversal desynchronization. This occurs when parsing the Info-ZIP Unicode Path Extra Field (header 0x7075). An attacker can exploit this to cause the ZIP parser to skip over malicious entries during analysis, leading to a Safe Browsing scan bypass while the hidden files remain extractable by standard archive tools like Windows Explorer or 7-Zip.
Vulnerability Details
The vulnerability stems from Chromium's local patch 0016-minizip-parse-unicode-path-extra-field.patch. When unz64local_GetCurrentFileInfoInternal processes the Info-ZIP Unicode Path Extra Field, it incorrectly overwrites the physical filename length with the length of the UTF-8 path stored inside the extra field.
In third_party/zlib/contrib/minizip/unzip.c at line 1088:
file_info.size_filename = fileNameSize;
Where fileNameSize is derived from the extra field's dataSize. This corrupted file_info.size_filename is then copied into the internal s->cur_file_info struct.
When iterating to the next file in the Central Directory (CD) via unzGoToNextFile, the corrupted size_filename value is used to calculate the physical start position of the next CD record:
s->pos_in_central_dir += SIZECENTRALDIRITEM + s->cur_file_info.size_filename +
s->cur_file_info.size_file_extra + s->cur_file_info.size_file_comment;
If an attacker crafts a ZIP entry where the Unicode path length specified in the extra field differs significantly from the actual physical filename length in the CD header, unzGoToNextFile will seek to an incorrect offset. By carefully padding the subsequent malicious entry, the attacker can cause the parser to overshoot the malicious entry entirely and land on a benign decoy entry.
Exploitation Scenario
The following steps describe how an attacker could potentially exploit this to bypass Safe Browsing:
- The attacker crafts a malicious ZIP archive containing three files: Entry A (benign), Entry B (malicious payload), and Entry C (benign).
- They modify the End of Central Directory (EOCD) record, setting
number_entryto2to hide the total count. - In Entry A's Central Directory (CD) record, the physical
size_filenameis set to1byte. - An Info-ZIP Unicode Path Extra Field (0x7075) is added to Entry A's CD record, with a
UnicodeNamelength of60bytes. - To pass minizip's coherency check (
unz64local_CheckCurrentFileCoherencyHeader), the attacker crafts the Local File Header (LFH) for Entry A to havesize_filenameset to60bytes, and pads the physical LFH filename to 60 bytes. - Entry B's CD record is padded (e.g., using the file comment field) so its total CD record size is exactly
59bytes (the difference between60and1). - During Safe Browsing analysis (
ZipAnalyzer::ResumeExtraction),unz64local_GetCurrentFileInfoInternalparses Entry A's CD record and overwritessize_filenameto60. - Entry A successfully extracts because the LFH
size_filenamematches the corrupted CDsize_filename(both are60). - When advancing to the next file,
unzGoToNextFileadds60instead of1to the pointer. This59byte overshoot skips Entry B's CD record perfectly, landing exactly on Entry C's valid magic number. - Entry C is processed, and analysis terminates due to the
number_entrylimit of 2. Entry B is never scanned. - Standard extraction tools, which lack this custom Unicode Path patch, parse the CD correctly using the physical size of
1, exposing the hidden malware to the user.
(Note: These are suggested steps; our tooling agent does not have the ability to run code to produce a working proof-of-concept.)
Suggested Fix
Do not overwrite file_info.size_filename with the Unicode Extra Field length. The physical layout of the Central Directory relies on the physical filename length.
If the caller requires the Unicode filename, it should be passed via a separate field in unz_file_info64, or unzGoToNextFile must be refactored to use a separate internal variable that tracks the true physical length of the filename stored in the CD record, ensuring traversal calculations remain synchronized with the archive's physical structure.
Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
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, Chromium's local patch to minizip overwrites the physical filename length with the length from the Unicode Path Extra Field, so the parser's position calculation for the next entry becomes incorrect.
Impact
Safe Browsing analysis could skip the malicious entry, so the malware is not detected, while standard extraction tools still extract it.
What the attacker needed
Attacker crafts a ZIP archive; victim downloads and opens the ZIP; Safe Browsing scans the ZIP
The fix
The code should not overwrite the physical filename length with the Unicode Extra Field length; instead, it should use a separate field or variable to track the true physical length for traversal calculations.
How it was found
- Craft a ZIP with three entries: a benign entry A, a malicious entry B, and a benign entry C.
- Modify the End of Central Directory record to set the entry count to 2.
- In entry A's Central Directory record, set the physical filename length to 1 byte.
- Add a Unicode Path Extra Field to entry A with a Unicode name length of 60 bytes.
- Craft entry A's Local File Header with a filename length of 60 bytes to pass the coherency check.
- Pad entry B's Central Directory record so its total size is 59 bytes, causing the parser to skip it and land on entry C.
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.
A ZIP file contains a list of its contents called the Central Directory. Chromium's Safe Browsing reads this list to check for malware. A bug in how Chromium reads a special filename field makes it skip an entry, so a malicious file inside the ZIP is never scanned, but normal unzip tools still extract it.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.