Skip to content
Business logic Advisory Advanced CVE-2026-79259

Improper input validation in Safebrowsing (CVE-2026-79259)

A logic error in the Safe Browsing 7z analyzer lets a crafted archive stop deep scanning early. An attacker could hide a malicious executable after a directory entry named with an archive extension, so the scanner never inspects it.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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 Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A logic error in the 7z archive analyzer allows specifically crafted archives to bypass Safe Browsing deep-scanning. By including a directory entry with an archive-type extension (e.g., '.zip'), an attacker can cause the analysis process to terminate prematurely. This results in subsequent malicious files within the same 7z archive being ignored by the security scanner.

Affected files:

  • chrome/utility/safe_browsing/seven_zip_analyzer.cc
  • chrome/utility/safe_browsing/archive_analyzer.cc
  • third_party/lzma_sdk/google/seven_zip_reader.cc

Estimated timestamp from git blame: 2023-04-26

Summary

A potential vulnerability has been identified in the Safe Browsing 7z analyzer where the extraction process can be tricked into finishing early. This allows an attacker to hide malicious binaries within a 7z archive, bypassing hash-blocklist and heuristic checks during deep scanning.

Potential Root Cause

The issue appears to reside in SevenZipAnalyzer::OnDirectory within chrome/utility/safe_browsing/seven_zip_analyzer.cc.

When the analyzer encounters an entry, it calls UpdateResultsForEntry in chrome/utility/safe_browsing/archive_analyzer.cc. This method checks the file extension to decide if it should perform a nested analysis (e.g., scanning a .zip inside the .7z). For a directory named with an archive extension (like folder.zip), it initiates a nested analysis and returns false, signaling that extraction should pause for asynchronous work.

However, in SevenZipAnalyzer::OnDirectory, the code fails to set the awaiting_nested_ flag to true when UpdateResultsForEntry returns false:

C++
// chrome/utility/safe_browsing/seven_zip_analyzer.cc
bool SevenZipAnalyzer::OnDirectory(const seven_zip::EntryInfo& entry) {
  return UpdateResultsForEntry(
      temp_file_.Duplicate(), GetRootPath().Append(entry.file_path),
      entry.file_size, entry.is_encrypted, /*is_directory=*/true,
      /*contents_valid=*/!entry.is_encrypted);
} // BUG: awaiting_nested_ is never set to true here.

When this returns false to the underlying SevenZipReader, the extraction loop breaks. Control returns to SevenZipAnalyzer::ResumeExtraction(), which checks awaiting_nested_. Because the flag is false, it returns true, indicating completion to the parent ArchiveAnalyzer. This causes the analyzer to report final results to the browser process prematurely, before subsequent entries in the 7z archive have been inspected.

Furthermore, if the nested analysis eventually finishes, it may trigger a CHECK failure in the utility process because the completion callback (finished_analysis_callback_) has already been consumed and nullified during the premature completion.

Potential Steps to Reproduce

  1. Create a 7z archive where the first entry is a directory named bypass.zip.
  2. Add a known-malicious executable (e.g., a test EICAR file or malware.exe) as the second entry in the archive.
  3. Download the archive using a Chrome instance with Safe Browsing 'Enhanced Protection' or Deep Scanning enabled.
  4. Observe the Safe Browsing logs (e.g., via chrome://safe-browsing) to see if the analysis report includes the malicious executable. If the bypass is successful, the report will likely show a valid archive with no identified binaries.

Suggested Fix

In chrome/utility/safe_browsing/seven_zip_analyzer.cc, update OnDirectory to correctly set the awaiting_nested_ flag when UpdateResultsForEntry returns false, consistent with how it is handled in EntryDone:

C++
bool SevenZipAnalyzer::OnDirectory(const seven_zip::EntryInfo& entry) {
  if (!UpdateResultsForEntry(
          temp_file_.Duplicate(), GetRootPath().Append(entry.file_path),
          entry.file_size, entry.is_encrypted, /*is_directory=*/true,
          /*contents_valid=*/!entry.is_encrypted)) {
    awaiting_nested_ = true;
    return false;
  }
  return true;
}

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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, the directory callback does not set the awaiting_nested_ flag when a nested analysis is started, so the analyzer reports completion before the remaining entries are inspected.

Impact

Malicious files placed after such a directory entry could avoid deep scanning, and a later nested analysis may also crash the utility process with a CHECK failure.

What the attacker needed

Chrome with deep scanning enabled; victim downloads a crafted 7z archive

The fix

The directory handler should set the awaiting_nested_ flag and return false when a nested analysis is started, as the report suggests.

How it was found

  1. Create a 7z archive whose first entry is a directory named with an archive extension.
  2. Add a known-malicious executable as the second entry.
  3. Download the archive in Chrome with Safe Browsing Enhanced Protection or deep scanning on.
  4. Check the Safe Browsing logs to see whether the malicious executable appears in the analysis report.

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.

Chrome can open a downloaded archive and look inside it for malware before you run anything. Here, a folder inside the archive was given a name ending in .zip, which made the scanner start a second scan and then wrongly think it had finished. Everything after that folder was never checked, so malware could slip through.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.