Privilege elevation in Import (CVE-2026-76018)
The ProfileImport utility process runs without a sandbox and decodes untrusted favicon data from imported bookmark files using the full Blink image-codec stack. A malicious bookmarks file could trigger memory corruption in a codec and achieve remote code execution at the OS-user privilege level.
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 ProfileImport utility process runs without a sandbox but processes untrusted bookmark favicons using the complex Blink image-codec stack. This architectural flaw violates the 'Rule-of-2' by performing dangerous parsing of untrusted data in a high-privilege process. A malicious bookmarks file could potentially trigger memory corruption in a codec and achieve Remote Code Execution (RCE) at the OS-user privilege level.
Affected files:
chrome/utility/importer/bookmarks_file_importer.ccchrome/utility/importer/firefox_importer.cccomponents/user_data_importer/content/content_bookmark_parser_utils.cccomponents/user_data_importer/content/favicon_reencode.ccchrome/common/importer/profile_import.mojomchrome/utility/importer/profile_import_impl.cc
Estimated timestamp from git blame: 2025-07-30
Summary
A potential "Rule-of-2" security violation exists in the desktop bookmark import system. When a user imports a bookmarks.html file, the ProfileImport utility process—which is explicitly unsandboxed—decodes favicon data-URLs found in the file using the full Blink image-codec stack. This allows the large attack surface of C++ image codecs (WebP, AVIF, PNG, etc.) to be targeted from a process with OS-user privileges.
Technical Details
- Unsandboxed Process: The
ProfileImportutility service is configured with[ServiceSandbox=sandbox.mojom.Sandbox.kNoSandbox]inchrome/common/importer/profile_import.mojom. This is intended to allow the process to access profile directories of other browsers on the local disk. - Dangerous Parsing Path: In
chrome/utility/importer/bookmarks_file_importer.cc, theStartImportmethod invokesuser_data_importer::ParseBookmarksUnsafe(raw_html). This function is documented incomponents/user_data_importer/content/content_bookmark_parser_utils.hwith a contract stating: "This function must be run in a sandboxed process." - Codec Invocation: Within
ParseBookmarksUnsafe, extractedICONattributes (which aredata:URLs) are processed viaimporter::ReencodeFavicon. This leads tocontent::DecodeImage, which initializes and runs the Blink image-codec stack (blink::ImageDecoder). - Blink Initialization: The utility process explicitly prepares for this by calling
content::UtilityThread::Get()->EnsureBlinkInitialized()inProfileImportImpl::StartImport(chrome/utility/importer/profile_import_impl.cc).
Potential Security Impact
By embedding a crafted image payload within a bookmark's ICON attribute, an attacker could potentially trigger a memory corruption vulnerability (such as a heap overflow) in one of the Blink image codecs. Because the ProfileImport process is unsandboxed, successful exploitation would grant the attacker Remote Code Execution (RCE) with the full privileges of the OS user, bypassing the Chrome sandbox entirely.
Potential Trigger Path
- An attacker induces a user to download a malicious
bookmarks.htmlfile. - The user navigates to
chrome://settings/importData, selects "Bookmarks HTML File", and selects the malicious file. - The Browser process launches the unsandboxed
ProfileImportutility process. - The utility process reads the file and invokes the Blink codec stack to decode the malicious
ICONdata, potentially triggering a vulnerability.
Recommended Fix
The legacy desktop importers (BookmarksFileImporter and FirefoxImporter) should be refactored to avoid calling ParseBookmarksUnsafe directly in the unsandboxed process. Instead, they should utilize the existing sandboxed mojom::BookmarkHtmlParser service (defined in components/user_data_importer/mojom/bookmark_html_parser.mojom), which is designed to parse this untrusted data within a restricted environment.
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.
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
Impact
A malicious bookmarks file could potentially trigger memory corruption in a codec and achieve remote code execution at the OS-user privilege level, bypassing the Chrome sandbox entirely.
What the attacker needed
Victim downloads a malicious bookmarks.html file; victim imports the file via chrome://settings/importData
The fix
The legacy desktop importers should be refactored to use the existing sandboxed BookmarkHtmlParser service instead of calling ParseBookmarksUnsafe directly in the unsandboxed process.
How it was found
- An attacker induces a user to download a malicious bookmarks.html file.
- The user navigates to chrome://settings/importData, selects 'Bookmarks HTML File', and selects the malicious file.
- The Browser process launches the unsandboxed ProfileImport utility process.
- The utility process reads the file and invokes the Blink codec stack to decode the malicious ICON data, potentially triggering a vulnerability.
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 import bookmarks from a file, Chrome uses a helper program to read the file. That helper program is not sandboxed, meaning it has the same access as your user account. If the file contains a specially crafted image, it could exploit a bug in the image decoder and let an attacker run code on your computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.