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

Improper state validation in Installer (CVE-2026-87548)

An ignored error return in the 7z reader's encryption check, combined with a mismatch in allowed coder counts between the scanning and decoding passes, lets a crafted 7z archive appear unencrypted and unsupported to Safe Browsing. The analyser then silently drops the entry, so malicious or encrypted payloads are omitted from the scan report while still opening in normal desktop 7z tools.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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: A logic error in the 7z reader ignores errors during encryption detection, causing incorrect metadata reporting. Combined with a coder limit discrepancy, this allows crafted archives to bypass Safe Browsing analysis. Malicious payloads can be hidden from deep-scanning while remaining accessible to users.

Affected files:

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

Estimated timestamp from git blame: 2022-09-20

Summary

A potential vulnerability exists in Chromium's Safe Browsing 7z archive analysis where an ignored return value in SevenZipReaderImpl::IsFolderEncrypted leads to incorrect metadata reporting. When combined with a 'parser differential'—where the initial archive scan permits more coders than the subsequent extraction and metadata pass—an attacker can craft a 7z archive that Safe Browsing fails to correctly identify as containing encrypted or executable content. This may allow malicious payloads to bypass deep-scanning signals.

Root Cause Analysis

The issue resides in SevenZipReaderImpl::IsFolderEncrypted within third_party/lzma_sdk/google/seven_zip_reader.cc. This function calls SzGetNextFolderItem to parse a folder's coder graph but ignores its SRes return value:

C++
// third_party/lzma_sdk/google/seven_zip_reader.cc
CSzFolder folder;
SzGetNextFolderItem(&folder, &span);                 // <-- SRes return value IGNORED

for (size_t i = 0; i < folder.NumCoders && i < SZ_NUM_CODERS_IN_FOLDER_MAX; ++i) {
  // ...
}

In the LZMA SDK, SzGetNextFolderItem initializes f->NumCoders = 0 and only sets the actual value after all validation passes. If validation fails (e.g., returning SZ_ERROR_UNSUPPORTED), NumCoders remains 0. Consequently, the loop in IsFolderEncrypted never runs, and the function incorrectly returns false regardless of the actual folder contents.

Parser Differential

A discrepancy exists between the archive scanning pass (ReadUnpackInfo called during SzArEx_Open) and the decoding/metadata pass (SzGetNextFolderItem).

  1. The initial scanning pass in the LZMA SDK allows up to 64 coders (k_Scan_NumCoders_MAX).
  2. The decoding pass and metadata parsing used by Chrome's reader limit this to 4 coders (SZ_NUM_CODERS_IN_FOLDER_MAX).

An archive folder utilizing 5 coders will be accepted during the initial SzArEx_Open call but will cause SzGetNextFolderItem to fail during the subsequent metadata-collection and extraction phases.

Potential Exploitation Steps

An attacker might follow these steps to potentially trigger the vulnerability:

  1. Craft a .7z file where a payload folder uses 5 coders, including an encryption method (e.g., 7zAES).

  2. When a user downloads the file, SevenZipAnalyzer initiates a scan in the sandboxed utility process.

  3. SzArEx_Open succeeds because its scanning pass allows up to 64 coders.

  4. IsFolderEncrypted is called for the payload entry. SzGetNextFolderItem fails due to the 4-coder limit and returns SZ_ERROR_UNSUPPORTED. The error is ignored, and entry.is_encrypted is incorrectly set to false (since folder.NumCoders was reset to 0).

  5. ExtractFile subsequently fails during SzAr_DecodeFolder for the same reason (the 4-coder limit), returning Result::kUnsupported.

  6. In SevenZipAnalyzer::EntryDone, the following logic is applied:

    C++
    if (result == seven_zip::Result::kSuccess || entry.is_encrypted) { ... }
    

    Since result is kUnsupported and entry.is_encrypted is false, the analyzer silently drops the entry.

The resulting Safe Browsing report sent to the backend will omit the malicious payload's metadata (filename, size, and executable status). This suppresses potential warnings like ZIPPED_EXECUTABLE, while the malicious payload remains accessible to the user via standard desktop 7z applications that support more than 4 coders.

Impact

Successful exploitation allows malicious files to bypass Safe Browsing analysis, reducing the effectiveness of download protection. The attacker can hide executable content or encrypted payloads from the analysis infrastructure.

Suggested Fix

  1. Modify SevenZipReaderImpl::IsFolderEncrypted in third_party/lzma_sdk/google/seven_zip_reader.cc to check and handle the return value of SzGetNextFolderItem.
  2. Consider aligning the coder limits between the scanning pass and the decoding pass in the LZMA SDK integration to prevent parser differentials. Increasing SZ_NUM_CODERS_IN_FOLDER_MAX to match k_Scan_NumCoders_MAX (within safe limits) or ensuring consistent enforcement across all passes would mitigate the issue.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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 return value of the folder-parsing call in the encryption check is ignored, so a failed parse leaves the coder count at zero and the folder is reported as unencrypted, while a separate coder-count limit difference between the scanning and decoding passes makes the parse fail in the first place.

Impact

Malicious or encrypted payloads may bypass Safe Browsing analysis and its warnings, though the payload still has to be opened by the user in a separate archive tool.

What the attacker needed

Victim downloads a crafted 7z file; victim opens it in a separate 7z tool

The fix

The encryption check should handle the parse return value, and the coder limits in the scanning and decoding passes should be aligned.

How it was found

  1. Craft a 7z file whose payload folder uses five coders, including an encryption method.
  2. The user downloads the file and the analyser starts a scan in the sandboxed utility process.
  3. The archive opens successfully because the scanning pass allows up to 64 coders.
  4. The encryption check fails on the four-coder limit, the error is ignored, and the entry is marked as not encrypted.
  5. Extraction also fails for the same reason and returns an unsupported result.
  6. The analyser drops the entry, so its metadata is missing from the Safe Browsing 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.

Safe Browsing opens downloaded archives in a sandbox and reports what is inside, such as hidden programs. Here a check that should say 'this folder is encrypted' failed quietly and returned 'not encrypted', and a second mismatch meant the file could not be unpacked for inspection. The result is that the suspicious contents were left out of the report, so the user got no warning, even though ordinary archive software can still open the file.

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.