Skip to content
Info disclosure Advisory Advanced CVE-2026-87535

Information loss or omission in Safebrowsing (CVE-2026-87535)

The DMG analyzer in Chrome's Safe Browsing silently drops nested files that are not Mach-O, ZIP, RAR, DMG, or 7z, so common macOS payloads like .pkg or .command inside a DMG are never recorded. An attacker could package a malicious installer in a DMG and potentially bypass Safe Browsing blocklist and reputation checks.

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

Overview: The DMGAnalyzer potentially silently drops nested non-Mach-O entries whose file types are not ZIP, RAR, DMG, or 7z (such as .pkg, .command, and .tar files), failing to record them as archived binaries. While sibling analyzers (ZIP, RAR, 7z) unconditionally record these entries, DMGAnalyzer lacks a fallthrough execution path for them. This causes a potential detection asymmetry where malicious payloads packaged inside a DMG can bypass Safe Browsing telemetry.

Affected files:

  • chrome/utility/safe_browsing/mac/dmg_analyzer.cc

Estimated timestamp from git blame: 2023-04-26

Root Cause

In chrome/utility/safe_browsing/mac/dmg_analyzer.cc (lines 200-226), DMGAnalyzer::ResumeExtraction() is responsible for iterating over and analyzing files within a DMG. However, non-Mach-O entries are handled in an else block that only processes files of four specific inspection types (ZIP, RAR, DMG, or SEVEN_ZIP):

C++
} else {
  // Get a new `stream` because it was read from in previous branches.
  stream = iterator_->GetReadStream();
  DownloadFileType_InspectionType file_type =
      GetFileType(base::FilePath(path));
  if (file_type == DownloadFileType::ZIP ||
      file_type == DownloadFileType::RAR ||
      file_type == DownloadFileType::DMG ||
      file_type == DownloadFileType::SEVEN_ZIP) {
    if (!CopyStreamToFile(*stream, temp_file_)) {
      continue;
    }
    ...
    if (!UpdateResultsForEntry(temp_file_.Duplicate(), ...)) {
      return false;
    }
  }
  // No else: non-{ZIP, RAR, DMG, 7z} and non-Mach-O files are silently dropped.
}

By comparison, sibling analyzers (ZIP, RAR, 7z) call UpdateResultsForEntry() unconditionally for every entry in the archive.

UpdateResultsForEntry() subsequently calls UpdateArchiveAnalyzerResultsWithFile(), which checks if the file is a checked binary (IsCheckedBinaryFile()) or an archive (IsArchiveFile()). If so, it computes its SHA256 and appends it to results->archived_binary so that it is included in the Safe Browsing telemetry request.

Because the DMGAnalyzer does not invoke UpdateResultsForEntry() for other file types, common macOS payloads such as flat-package installer files (.pkg, .mpkg), executable scripts (.command), or compressed archives (.tar, .gz, .bz2) inside a DMG are silently dropped and never recorded.

Potential Trigger Path

Note: The following steps are a potential vector, as our tooling cannot execute code.

  1. An attacker packages a malicious installer file Install.pkg inside a DMG volume (evil.dmg) and hosts it on a server.
  2. A user downloads evil.dmg on macOS using Google Chrome.
  3. Chrome triggers the out-of-process SandboxedDMGAnalyzer within the utility process.
  4. DMGAnalyzer::ResumeExtraction() iterates over the DMG's files. For Install.pkg, the parser determines it is not a Mach-O file (since its magic bytes are xar!), entering the else block.
  5. The analyzer calls GetFileType("Install.pkg"), which evaluates to DownloadFileType::NONE because .pkg has no special inspection_type in download_file_types.asciipb.
  6. The if check on lines 205-208 evaluates to false, so the file is skipped.
  7. The browser process receives the results with an empty archived_binary list. The Safe Browsing backend receives a telemetry ping with no record of Install.pkg or its hash, allowing the download to potentially bypass blocklist and reputation checks.

Suggested Fix

Modify the check in chrome/utility/safe_browsing/mac/dmg_analyzer.cc to also extract and process the file if it is a checked binary or archive file:

C++
} else {
  stream = iterator_->GetReadStream();
  base::FilePath file_path(path);
  DownloadFileType_InspectionType file_type = GetFileType(file_path);
  
  bool should_analyze = 
      file_type == DownloadFileType::ZIP ||
      file_type == DownloadFileType::RAR ||
      file_type == DownloadFileType::DMG ||
      file_type == DownloadFileType::SEVEN_ZIP ||
      safe_browsing::FileTypePolicies::GetInstance()->IsCheckedBinaryFile(file_path) ||
      safe_browsing::FileTypePolicies::GetInstance()->IsArchiveFile(file_path);

  if (should_analyze) {
    if (!CopyStreamToFile(*stream, temp_file_)) {
      continue;
    }
    if (!temp_file_.IsValid()) {
      continue;
    }
    if (!UpdateResultsForEntry(
            temp_file_.Duplicate(), GetRootPath().Append(path),
            /*file_length=*/0,
            /*is_encrypted=*/false, /*is_directory=*/false,
            /*contents_valid=*/true)) {
      return false;
    }
  }
}

Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf


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 DMG analyzer only records nested files whose type is ZIP, RAR, DMG, or 7z, and has no fallback to record other checked binaries or archives.

Impact

The Safe Browsing backend receives a telemetry ping with no record of the nested file or its hash, allowing the download to potentially bypass blocklist and reputation checks.

What the attacker needed

Victim downloads a DMG on macOS; attacker hosts a crafted DMG

The fix

The check in dmg_analyzer.cc should be modified to also extract and process the file if it is a checked binary or archive file.

How it was found

  1. An attacker packages a malicious installer file inside a DMG volume and hosts it on a server.
  2. A user downloads the DMG on macOS using Google Chrome.
  3. Chrome triggers the out-of-process SandboxedDMGAnalyzer within the utility process.
  4. The analyzer iterates over the DMG's files; for the installer, it determines it is not a Mach-O file and enters the else block.
  5. The analyzer calls GetFileType on the installer, which evaluates to DownloadFileType::NONE because .pkg has no special inspection_type.
  6. The if check evaluates to false, so the file is skipped and the browser receives results with an empty archived_binary list.

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.

When you download a file, Chrome checks it against a list of known bad files. For disk images (DMG files) on macOS, Chrome opens the image and looks at the files inside to see if any are dangerous. This report says Chrome forgets to check some types of files inside the image, like installer packages, so a bad file could slip through unnoticed.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.