schliewe.systems
← cd ../blog
#javascript#v8#exploitation#ctf

Three bugs, one model

Three V8 bugs from 2026, the chain from a memory bug to code execution, and which steps the Forge can reproduce.

$ whoami Jack Schliewe · 17 November 2026 · 4 min read

In August 2026 Depthfirst reported three bugs in V8 and turned two of them into v8CTF flags. Their writeup is the map. A memory-corruption bug is half the chain. The other half is leaving a sandbox built to contain it.

The three bugs

BugClassRoot cause
CVE-2026-78938type confusionTurboFan built Promise.prototype.finally's helpers as non-strict and constructable. new on such a helper returns a number, which the compiler had typed as an object
CVE-2026-79236stale storageLoad elimination kept an object's property array across a map check that was allowed to migrate the object and replace that array
issue 546253900sandbox escapeWasm memory serialization registered one backing store and handed the worker a different one, leaving a dangling Isolate* outside the V8 heap sandbox

The first two are compiler bugs. The third is not a memory bug. Two mechanisms that both look correct disagree about which buffer is shared.

The chain

Every modern chain looks like this, whatever the entry bug is:

one memory bugaddrof / fakeobjread and write inthe 4 GiB cageretarget a DataViewleave the 1 TiBsandboxnative control

The V8 sandbox reserves a terabyte and constrains how objects inside it refer to memory. Pointer compression then keeps ordinary references inside a 4 GiB cage within that reservation. So a corrupted JS heap buys you cage access, and cage access buys you nothing until you find an object with a native pointer you can retarget — in the Depthfirst chain, a DataView, and later a Wasm backing store.

Shared Wasm memory keeps a list of the isolates using it, as native pointers outside the sandbox. Serializing it registers a backing store. Registration follows an extension handle. Delivery follows the object identity. The worker ends up attached to a buffer nobody registered. When the worker dies, its native isolate is freed and the buffer still points at it. memory.grow(0) calls into freed memory. The reclaim is a queued WebSocket message sized to the same 0x20000 allocation. The exploit checks that the payload landed on the dangling address before triggering it.

Each step limits what the next step can assume.

What a model can carry

The Forge is a JavaScript engine small enough to read, with one deliberate bug:

The sweep never moves a block, so a stale offset still reads the next allocation instead of crashing.

What it cannot carry

The Forge has no JIT, so no bug in it is a compiler bug. It has no pointer compression, so its cage is 64 KiB rather than 4 GiB. Its sandbox is a handle table in the host, not a terabyte reservation. And it has no native memory at all — the last step of a real chain simply does not exist there.

That is the difference between this model and a browser. What it does have: the bugs are in the engine's own paths, an ordinary program can reach them, and the checks read memory and the host log, not the exploit source.

The Forge is at /forge. It runs on the server, for reasons the next post gets into.