Skip to content
Memory corruption Write-up Advanced

The Cat Escaped from the Chrome Sandbox

A use-after-free bug in Chrome's IndexedDB API, combined with an out-of-bounds write in V8, allowed an attacker to escape the browser sandbox. The exploit was triggered through a Mojo IPC connection and was one of two vulnerabilities exploited in the wild in September 2021.

starlabs.sg

Published on starlabs.sg

On 13th September 2021, Google published the security advisory for Google Chrome. That advisory states that Google is aware of two vulnerabilities exploited in the wild, CVE-2021-30632 as RCE and CVE-2021-30633 as Sandbox Escape.

The author, on starlabs.sg

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a use-after-free in the IndexedDB implementation, where an object was freed but still used, combined with an out-of-bounds write in V8, allowing memory corruption that could be exploited through Mojo IPC.

Impact

An attacker who already had code execution inside the Chrome renderer could use this flaw to escape the sandbox and potentially run code with higher privileges on the host, though the text does not detail the full impact.

What the attacker needed

Ability to run code in Chrome renderer; victim visits a malicious page

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 write-up has not been written yet. The Original tab links to the source.

Chrome tries to keep web pages in a safe box called a sandbox so that a bug in the browser cannot harm your whole computer. This report explains how a mistake in how Chrome handles a storage feature called IndexedDB let an attacker break out of that box. The attacker first needed another bug to run code inside the browser, then used this flaw to reach the rest of the system.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.