Privilege elevation in Contacts (CVE-2026-121234)
The Android Contacts Picker decodes contact photo blobs in the privileged browser process using the memory-unsafe BitmapFactory API, violating Chromium's Rule of 2. An attacker who can supply a crafted image blob (via vCard import, a malicious app with contacts write access, or account sync) could potentially trigger memory corruption in native image codecs and achieve code execution in the browser process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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 Android Contacts Picker performs image decoding of contact photos in the privileged browser process using the memory-unsafe BitmapFactory API. This pattern violates Chromium's 'Rule of 2' by processing untrusted system-provided data in an unsandboxed process using native C++ codecs. This behavior differs from the Photo Picker, which uses a sandboxed utility process for similar tasks.
Affected files:
components/browser_ui/contacts_picker/android/java/src/org/chromium/components/browser_ui/contacts_picker/FetchIconWorkerTask.javacomponents/browser_ui/contacts_picker/android/java/src/org/chromium/components/browser_ui/contacts_picker/PickerCategoryView.javacomponents/browser_ui/contacts_picker/android/java/src/org/chromium/components/browser_ui/contacts_picker/AndroidContactsFetcherImpl.java
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
The Android Contacts Picker implementation in Chrome contains a potential 'Rule of 2' violation. When displaying contact avatars or processing results from the system contacts provider, Chrome decodes image blobs using the android.graphics.BitmapFactory API directly within the browser process. Although called from Java, BitmapFactory is a wrapper for native C++ image codecs (such as Skia), which are susceptible to memory corruption vulnerabilities when processing crafted inputs.
Root Cause
The vulnerability exists in two primary locations where photo blobs are retrieved from the ContactsContract provider and decoded in-process:
-
FetchIconWorkerTask.java: ThedoInBackgroundmethod (line 95) decodes icons for the picker UI usingBitmapFactory.decodeStreamon a browser-process background thread.Java // components/browser_ui/contacts_picker/android/java/src/org/chromium/components/browser_ui/contacts_picker/FetchIconWorkerTask.java:95 Bitmap icon = BitmapFactory.decodeStream(new ByteArrayInputStream(data)); -
PickerCategoryView.java: WithinSystemContactsWorkerTask.call(line 671), photo blobs returned from the system contact picker are decoded usingBitmapFactory.decodeByteArray.Java // components/browser_ui/contacts_picker/android/java/src/org/chromium/components/browser_ui/contacts_picker/PickerCategoryView.java:671 bitmap = BitmapFactory.decodeByteArray(builder.photoBytes, 0, builder.photoBytes.length);
Potential Attack Vector
An attacker could potentially influence the contact photo blobs through several non-privileged channels on Android:
- vCard Import: A user importing a crafted
.vcffile with a maliciousPHOTOproperty. - Malicious Applications: A third-party app with
WRITE_CONTACTSpermissions populating the system contacts database with crafted image data. - Account Sync: Malicious data synced from a rogue remote account (e.g., CardDAV).
The vulnerability is triggered when a website invokes the Contact Picker API (navigator.contacts.select), and the user selects a contact or scrolls past a contact containing the malicious photo blob.
Impact
If an exploitable memory corruption bug exists in the underlying Android OS image decoding libraries (Skia, libjpeg-turbo, etc.), an attacker could achieve arbitrary code execution within the context of the Chrome browser process. This bypasses the renderer sandbox entirely, as the decoding occurs in the high-privilege browser process.
Suggested Fix
To comply with the 'Rule of 2', image decoding should be moved out of the browser process. Chrome should utilize the existing data_decoder service (or the sibling Photo Picker's DecoderServiceHost infrastructure) to decode contact photos in a sandboxed utility process. This ensures that a compromise in the image decoder does not lead to a compromise of the entire browser.
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
Root cause
Likely, untrusted contact photo blobs are decoded with BitmapFactory in the browser process instead of a sandboxed utility process, breaking the Rule of 2.
Impact
If an exploitable memory corruption bug exists in the underlying image decoding libraries, an attacker could achieve arbitrary code execution within the Chrome browser process, bypassing the renderer sandbox.
What the attacker needed
Crafted image in a contact photo; user opens Contacts Picker via a website; user selects or scrolls past the contact
The fix
Image decoding should be moved out of the browser process into the existing data_decoder service or the Photo Picker's sandboxed decoder infrastructure.
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 on Android has a feature that lets websites show a list of your contacts so you can pick one. To display each contact's photo, Chrome turns the image data into a picture using a built-in image decoder. That decoder is written in a low-level language that can have memory bugs, and here it runs inside Chrome's most trusted process rather than a locked-down helper. If someone can put a specially crafted photo into your contacts, a bug in the decoder could let them run code with Chrome's full privileges.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.