Improper state validation in Safebrowsing (CVE-2026-87645)
A crafted RAR5 archive with high PBKDF2 iteration counts can block Chrome's Safe Browsing analysis, causing a browser-side timeout that defaults to a not-dangerous classification. This allows a malicious file to be downloaded without a security warning.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 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.
Overview: A logic flaw in Chrome's Safe Browsing RAR analysis allows attackers to bypass security warnings. By using maximum PBKDF2 iteration counts in encrypted entries, an attacker can cause a synchronous hang in the utility process. This leads to a browser-side timeout and a fail-open result, allowing malicious files to be downloaded without a warning.
Affected files:
chrome/utility/safe_browsing/rar_analyzer.ccchrome/services/file_util/safe_archive_analyzer.ccthird_party/unrar/src/crypt.hppthird_party/unrar/google/unrar_wrapper.ccchrome/browser/download/chrome_download_manager_delegate.ccchrome/browser/safe_browsing/download_protection/check_client_download_request_base.ccthird_party/unrar/src/arcread.cppthird_party/unrar/src/crypt5.cppthird_party/unrar/src/extract.cppcomponents/safe_browsing/content/resources/download_file_types.asciipb
Estimated timestamp from git blame: 2025-12-17
Summary
A potential vulnerability exists in the RAR archive analysis within Safe Browsing. A crafted RAR5 archive with high KDF iteration counts can block the utility process's main thread. This prevents the analysis from completing, triggering a browser-side timeout that defaults to a safe classification (fail-open), thereby bypassing malware checks.
Technical Details
The bypass occurs due to the intersection of several behaviors across the unrar library and Chrome's archive analysis architecture:
- High KDF Iteration Limit: In
third_party/unrar/src/crypt.hpp,CRYPT5_KDF_LG2_COUNT_MAXis set to 24 in production builds. This allows an archive to specify $2^{24}$ (approximately 16.7 million) PBKDF2 iterations per encrypted file. - Unconditional PBKDF2 Execution: When Safe Browsing analyzes an archive,
third_party/unrar/google/unrar_wrapper.ccprovides a default dummy password ("x") if no password is provided by the user. The wrapper attempts to extract every entry by callingextractor_->ExtractCurrentFile. This unconditionally triggers the synchronous PBKDF2 loop inthird_party/unrar/src/crypt5.cppfor every encrypted entry with a unique salt. Without hardware acceleration, this takes 10-15 seconds per entry. - Blocked Synchronous Watchdog: The extraction loop runs synchronously on the utility process's main sequence. The 10-second watchdog timer (
kArchiveAnalysisTimeoutinSafeArchiveAnalyzer) is also scheduled on this exact same sequence. Consequently, the timer is blocked by thepbkdf2loop and cannot interrupt the execution. - Browser Fail-Open Behavior: While the utility process is stalled, the browser-side 7-second timeout (
kDownloadRequestTimeoutMs) expires. This cancels the Safe Browsing request with a result ofDownloadCheckResult::UNKNOWN. Because.rarfiles do not have an explicitDANGEROUSlevel in thedownload_file_types.asciipbconfiguration,ChromeDownloadManagerDelegatedefaultsUNKNOWNresults toDOWNLOAD_DANGER_TYPE_NOT_DANGEROUS. The download completes with no security warning.
Suggested Attacker Steps
(Note: These are suggested steps based on code analysis, as our tooling agent does not currently have the ability to run code to produce a working proof-of-concept.)
- Create a malicious RAR5 archive containing multiple dummy encrypted entries.
- For each encrypted dummy entry, modify the
HEAD_CRYPTblock to set theLg2Countfield to24and provide a unique salt (to bypass the unrar KDF cache). - Append a known-malicious, unencrypted payload (e.g., a malware executable) as the final entry in the archive.
- Host the archive and induce a victim to download it in Chrome with Standard Safe Browsing enabled.
- The utility process will hang processing the dummy entries, the browser's 7-second timeout will expire, and the malicious payload will be saved to disk without any warnings.
Suggested Fix
- Skip Extraction for Encrypted Files: In
third_party/unrar/google/unrar_wrapper.cc, checkarchive_->FileHead.Encryptedbefore callingextractor_->ExtractCurrentFile. If the file is encrypted and no valid password was provided by the user, skip the extraction attempt entirely. This avoids triggering the expensive PBKDF2 calculation for unknown passwords. - Isolate Watchdog Timer: Modify
SafeArchiveAnalyzerto run itstimeout_timer_on a separate sequence or thread so that it can effectively terminate the analysis even if the main utility thread is blocked in a synchronous loop.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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 the archive analyser runs a slow password-stretching loop on the same thread as its watchdog timer, so the timer cannot fire and the browser's own timeout defaults to 'not dangerous'.
Impact
A malicious file could be downloaded without a Safe Browsing warning, but the report notes the steps are suggested from code analysis and no working proof-of-concept was run.
What the attacker needed
Victim downloads a crafted RAR5 file; Standard Safe Browsing enabled; no user password needed
The fix
The wrapper should skip extraction of encrypted entries when no valid password was provided, and the analyser's watchdog timer should run on a separate thread so it can still fire.
How it was found
- Create a RAR5 archive with several encrypted dummy entries.
- Set each encrypted entry's iteration count to the maximum and give each a unique salt.
- Add a malicious unencrypted payload as the last entry.
- Host the archive and get a victim to download it in Chrome with Standard Safe Browsing.
- The analysis hangs, the browser timeout expires, and the payload is saved without a warning.
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 checks downloaded files for malware using a separate helper process. This report shows that a specially made archive can make that helper process busy for too long, so Chrome gives up waiting and assumes the file is safe. As a result, a malicious file can be saved without any warning.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.