Insufficient validation of untrusted input in Chrome for iOS (CVE-2026-11202)
Several iOS Chrome components deserialise data from a shared App Group container using NSKeyedUnarchiver with secure coding disabled. A compromised App Extension could write a malicious serialised object graph to that shared storage, and when the main browser process reads it, this could lead to arbitrary code execution and a sandbox escape.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 42 days
Flapjack, 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. Please see go/chrome-ai-generated-security-bugs-faq for more information.
Overview: Multiple iOS Chrome components process data from the shared App Group container using NSKeyedUnarchiver with requiresSecureCoding explicitly disabled. A compromised App Extension can write malicious serialized objects to this shared storage. When the Main Browser process reads and deserializes this data, it can lead to arbitrary code execution (RCE) and a sandbox escape.
Affected files:
ios/chrome/browser/content_suggestions/ui/cells/content_suggestions_tile_saver.mmios/chrome/browser/share_extension/model/share_extension_utils.mmios/chrome/credential_provider_extension/favicon_util.mm
Estimated timestamp from git blame: 2025-07-25
Summary
A potential sandbox escape vulnerability exists in iOS Chrome due to the insecure deserialization of data retrieved from the shared App Group container.
App Extensions (such as the Widget Extension or Share Extension) operate in a restricted sandbox but share access to an "App Group" container with the Main Chrome Browser app for data synchronization. In several places, the Main Browser process reads data from this shared container and deserializes it using NSKeyedUnarchiver with requiresSecureCoding explicitly set to NO.
Because the App Group container is writable by the less privileged App Extensions, an attacker who compromises an extension can write a maliciously crafted serialized Objective-C object graph into the shared storage. When the fully privileged Main Browser process deserializes this payload without secure coding enforced, it will instantiate any class specified by the attacker, potentially leading to Arbitrary Code Execution (RCE) via standard Objective-C gadget chains.
Technical Details
The vulnerability manifests in at least two distinct paths where the Main Browser process reads from the shared container:
Path 1: Content Suggestions (NTP Tiles)
In ios/chrome/browser/content_suggestions/ui/cells/content_suggestions_tile_saver.mm, the DecodeData function explicitly disables secure coding:
NSDictionary* DecodeData(NSData* data) {
// ... initialization ...
unarchiver.requiresSecureCoding = NO;
return [unarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
}
This function is called by a background task ClearOutdatedIcons(), which reads the dictionary stored at app_group::kSuggestedItemsForMultiprofile in the shared NSUserDefaults. A compromised extension can poison this key.
Path 2: Share Extension Processing
In ios/chrome/browser/share_extension/model/share_extension_utils.mm, the PerformBlockingFileReadAndParse function reads files from the shared ExternalCommands folder:
ParsedShareExtensionEntry* PerformBlockingFileReadAndParse(NSURL* file_url) {
// ... initialization ...
unarchiver.requiresSecureCoding = NO;
id entryID = [unarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
// ...
}
This is called by ShareExtensionController::handleFileAtURL:, which monitors a shared folder that the Share Extension writes to.
Potential Attack Steps
Note: These steps describe a potential attack path; we do not currently have a working proof of concept to verify execution.
- Initial Compromise: An attacker exploits a separate vulnerability to gain initial code execution within a sandboxed iOS App Extension belonging to Chrome (e.g., the Widget or Share extension).
- Payload Generation: The attacker crafts a malicious serialized Objective-C object graph (
NSDatapayload) utilizing known deserialization gadget chains. - Data Poisoning: Running within the extension, the attacker writes the
NSDatapayload to the shared App Group container. This could be writing to theapp_group::kSuggestedItemsForMultiprofilekey in the sharedNSUserDefaults, or writing a file to the sharedExternalCommandsdirectory. - Triggering the Main App: The user interacts with the Main Chrome Browser app, triggering actions that read the shared data (e.g., opening the New Tab Page triggers the tile saver background task; the
ShareExtensionControllerautomatically detects new files). - Insecure Deserialization: The Main Browser process reads the poisoned data and passes it to
NSKeyedUnarchiver. - Arbitrary Code Execution: Because
requiresSecureCoding = NO, the unarchiver allocates and initializes the attacker's gadget classes. The subsequent execution of methods likeinitWithCoder:ordeallocprovides Arbitrary Code Execution within the highly privileged Main Browser process, completing the sandbox escape.
Recommendation
To remediate this issue, data crossing process boundaries must enforce secure coding:
- Ensure that all classes serialized and stored in the App Group container (such as
NTPTileandFaviconAttributes) implement theNSSecureCodingprotocol. - Audit all usages of
NSKeyedUnarchiverthat process data from shared containers. - Set
unarchiver.requiresSecureCoding = YES;. - Use
decodeObjectOfClasses:forKey:ordecodeObjectOfClass:forKey:to specify an explicit allowlist of expected classes during deserialization, rather than the overly permissivedecodeObjectForKey:.
Evaluated with Chrome root at commit: 4a3e9db74111a3c6c4b3acfd70050a05077cf27a
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
The code calls NSKeyedUnarchiver with requiresSecureCoding set to NO and uses decodeObjectForKey without an allowlist, so any class named in the archived data can be instantiated.
Impact
A compromised App Extension could achieve arbitrary code execution and a sandbox escape in the main Chrome browser process, though the report notes there is no working proof of concept yet.
What the attacker needed
Compromise of a Chrome App Extension; ability to write to the shared App Group container; user opens the main Chrome app
The fix
The issue should be fixed by making shared classes conform to NSSecureCoding, enabling requiresSecureCoding, and decoding only an explicit allowlist of classes.
How it was found
- Compromise a sandboxed Chrome App Extension through a separate vulnerability.
- Craft a malicious serialised Objective-C object graph using known gadget chains.
- Write the payload into the shared App Group container, either to the suggested items key or to the ExternalCommands folder.
- Trigger the main Chrome browser to read the shared data, for example by opening the New Tab Page or letting the share extension controller detect the new file.
- The main process deserialises the poisoned data with NSKeyedUnarchiver and secure coding disabled.
- The unarchiver instantiates attacker-chosen classes, leading to arbitrary code execution in the main browser process.
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.
iOS apps can share a storage area with their extensions (small helper apps like widgets). Chrome's main app reads data from that shared area and turns it back into objects without checking what classes are allowed. If an attacker can write into that shared area from a less trusted extension, the main app might create dangerous objects and run attacker code.
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.