← Lab /Security & privacy

Shared state bug in V8's AsmJS parser enables Ubercage sandbox escape

A shared-state bug in V8’s AsmJS parser allows arbitrary read/write and code execution outside Chrome’s Ubercage sandbox.

Security & privacy Exodus Intelligence 22 Jun 2026 Disclosure Prototype evidence

Published as “Out of Shift: How a Shared State Bug in V8’s AsmJS Parser Broke the Ubercage”

Why it matters

The bug breaks Chrome’s Ubercage isolation, allowing remote web content to execute native code on the host.

Summary

The researchers discovered that V8’s AsmJS parser mishandles nested shift expressions, corrupting the WebAssembly opcode stream. This corruption lets attackers inject unvalidated opcodes, bypassing WebAssembly validation and gaining arbitrary read/write primitives. They demonstrate a full exploit chain that leaks the trusted cage base and overwrites a jump table to achieve arbitrary code execution. The evidence consists of source-code analysis and a PoC exploit, but no real-world incidents are reported.

What they found 1

  1. Nested shift expressions cause the parser to truncate the opcode stream at the wrong position, leaving stale opcodes.

    “As a result, the opcode at [8] replaces the inserted opcodes with itself and stale the opcode stream.”

Caveats 3

  • The high 32-bit of the RAX register is not cleared after returning a 32-bit SMI, requiring extra steps to leak the full address.
  • Because the heap_access_shift_position_ attribute is an attribute of the current AsmJsParser parser instance, its state is shared across all recursive parsing calls.
  • If the AsmJs function is defined to return a 32-bit SMI value, it truncates the high 32-bits (the base address) from the return value; thus, the base address cannot be obtained.

What’s new here 4

  • Identification of a shared-state bug in the AsmJS parser’s heap access handling.
  • Demonstration that the bug corrupts the WebAssembly opcode stream, bypassing validation.
  • Construction of arbitrary read/write primitives using malformed struct opcodes.
  • Full exploit achieving sandbox escape and code execution in Chrome.