Out of bounds write in V8 (CVE-2026-11173)
The V8 debugger's variable update path used an unvalidated index when writing a variable value to the native stack, so a corrupted script source could inflate the variable count and cause an out-of-bounds write. An attacker with in-sandbox read/write could overwrite saved return addresses and native pointers, escaping the V8 sandbox.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 50 days
Project Fortify has identified a security issue and generated a PoC.
d8 variant: 'Asan'
flags: --enable-inspector --sandbox-testing --expose-memory-corruption-api --fuzzing
Return code: 139
<details> <summary>stdout</summary>
Sandbox testing mode is enabled. Only sandbox violations will be reported, all other crashes will be ignored.
Sandbox bounds: [0x70ce00000000,0x71ce00000000)
## V8 sandbox violation detected!
Received signal 11 SEGV_MAPERR 7ffdc862c748
==== C stack trace ===============================
bin/Asan/d8(___interceptor_backtrace+0x46)[0x595cdb5c4d16]
bin/Asan/d8(+0x739e929)[0x595ce13b4929]
bin/Asan/d8(+0x3247563)[0x595cdd25d563]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x761687c45330]
bin/Asan/d8(+0x1dcf2e7)[0x595cdbde52e7]
bin/Asan/d8(+0x1cce5a6)[0x595cdbce45a6]
bin/Asan/d8(+0x1ccd847)[0x595cdbce3847]
bin/Asan/d8(+0x4961b4b)[0x595cde977b4b]
bin/Asan/d8(+0x489f3f3)[0x595cde8b53f3]
bin/Asan/d8(+0x4a3d721)[0x595cdea53721]
bin/Asan/d8(+0x49d2c00)[0x595cde9e8c00]
bin/Asan/d8(+0x16da5c6)[0x595cdb6f05c6]
bin/Asan/d8(+0x70f8664)[0x595ce110e664]
[end of stack trace]
Segmentation fault (core dumped)
Overview: The V8 debugger's variable update mechanism is vulnerable to an out-of-bounds write on the native C++ stack. An attacker with arbitrary read/write within the V8 sandbox can corrupt a script's source code, causing the debugger to reparse it with an inflated number of variables. When a variable is updated via the debugger, V8 writes to the native stack using the unvalidated index, allowing control flow hijacking and sandbox escape.
Affected files:
v8/src/debug/debug-scopes.ccv8/src/execution/frames.ccv8/src/execution/frames-inl.h
Estimated timestamp from git blame: 2026-02-13
Root Cause
When a local variable or parameter is modified via the Chrome DevTools Protocol (CDP) command Debugger.setVariableValue, V8 invokes ScopeIterator::SetLocalVariableValue. To locate the variable, the debugger reparses the function's source code, which is retrieved from Script::source().
Under the V8 sandbox threat model, the Script object and its source string reside inside the sandbox and are attacker-controllable. An attacker with in-sandbox read/write access can corrupt the source code of a paused function to include an excessive number of parameters or local variables. When the debugger reparses this corrupted source, it assigns a massive index to the newly injected variables.
ScopeIterator::SetLocalVariableValue then uses this untrusted index to update the variable on the stack:
- For parameters, it calls
JavaScriptFrame::SetParameterValue(index, ...), which writes tocaller_sp() + (index + 1) * 8. - For locals, it calls
frame->SetExpression(index, ...), which writes tofp() + offset - index * 8.
Crucially, the underlying offset calculations (CommonFrameWithJSLinkage::GetParameterSlot and CommonFrame::GetExpressionAddress) only validate the index using DCHECKs. In release builds, there are no bounds checks. This allows the attacker to specify an arbitrary index and perform an out-of-bounds write of a 64-bit V8 object pointer directly to the native C++ stack.
Impact
An attacker can overwrite saved return addresses or native C++ pointers on the stack, bypassing stack canaries and achieving native Remote Code Execution (RCE) outside the V8 sandbox. Since this requires an active debugger session (e.g., DevTools open), it relies on user interaction, but it represents a full bypass of the V8 sandbox's security guarantees.
Suggested Fix
Introduce explicit release-build bounds checks when calculating stack slot addresses or writing to the stack.
For example, in CommonFrameWithJSLinkage::GetParameterSlot and CommonFrame::GetExpressionAddress, replace the DCHECKs with actual bounds checks (e.g., CHECK) that validate the index against the actual executing frame's parameter or expression count. Alternatively, enforce bounds checking within ScopeIterator::SetLocalVariableValue before modifying the frame.
Evaluated with Chrome root at commit: bdfb9c25e02c7ac58c2db7565d32b3044ee487a6
The description of the vuln is LLM-generated and can contain mistakes. Your feedback is appreciated, and will help us make improvement over time. The PoC was run in a VM and it seemed to be legit - if not, let us know and we can strengthen our checker.
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 the stack slot address calculations only validated the variable index with debug-only assertions, so release builds performed no bounds check before writing.
Impact
An attacker could overwrite saved return addresses or native pointers on the stack and achieve native code execution outside the V8 sandbox, though this requires an active debugger session such as DevTools being open.
What the attacker needed
In-sandbox read/write primitive; active debugger session (e.g. DevTools open)
The fix
The stack slot address calculations should enforce real bounds checks in release builds, validating the index against the frame's actual parameter or expression count.
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.
V8 is the JavaScript engine in Chrome, and it runs untrusted code inside a restricted area called the sandbox. When a developer tool asks the debugger to change a variable's value, the engine works out where that variable lives on the stack and writes there. The code trusted a number it got from the script's own source without checking it, so a crafted value could make the write land outside the intended slot and overwrite memory the engine relies on.
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.