Skip to content
Path traversal Advisory Advanced CVE-2026-11266

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.c
  • third_party/zlib/google/zip_reader.cc
  • chrome/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:

C
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:

C
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:

  1. The attacker crafts a malicious ZIP archive containing three files: Entry A (benign), Entry B (malicious payload), and Entry C (benign).
  2. They modify the End of Central Directory (EOCD) record, setting number_entry to 2 to hide the total count.
  3. In Entry A's Central Directory (CD) record, the physical size_filename is set to 1 byte.
  4. An Info-ZIP Unicode Path Extra Field (0x7075) is added to Entry A's CD record, with a UnicodeName length of 60 bytes.
  5. To pass minizip's coherency check (unz64local_CheckCurrentFileCoherencyHeader), the attacker crafts the Local File Header (LFH) for Entry A to have size_filename set to 60 bytes, and pads the physical LFH filename to 60 bytes.
  6. Entry B's CD record is padded (e.g., using the file comment field) so its total CD record size is exactly 59 bytes (the difference between 60 and 1).
  7. During Safe Browsing analysis (ZipAnalyzer::ResumeExtraction), unz64local_GetCurrentFileInfoInternal parses Entry A's CD record and overwrites size_filename to 60.
  8. Entry A successfully extracts because the LFH size_filename matches the corrupted CD size_filename (both are 60).
  9. When advancing to the next file, unzGoToNextFile adds 60 instead of 1 to the pointer. This 59 byte overshoot skips Entry B's CD record perfectly, landing exactly on Entry C's valid magic number.
  10. Entry C is processed, and analysis terminates due to the number_entry limit of 2. Entry B is never scanned.
  11. 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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Craft a ZIP with three entries: a benign entry A, a malicious entry B, and a benign entry C.
  2. Modify the End of Central Directory record to set the entry count to 2.
  3. In entry A's Central Directory record, set the physical filename length to 1 byte.
  4. Add a Unicode Path Extra Field to entry A with a Unicode name length of 60 bytes.
  5. Craft entry A's Local File Header with a filename length of 60 bytes to pass the coherency check.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.