Researcher uses Claude Opus to build full exploit chain for V8 bug CVE-2026-5873 against Discord's outdated bundled Chromium
A researcher from Hacktron (Mohan Pedhapati) describes an experiment in which Claude Opus was guided over roughly a week to develop a working exploit chain against Discord's bundled Chromium, which runs nine major versions behind upstream (Chrome 138). The chain leverages CVE-2026-5873, a V8 Turboshaft bounds-check elimination bug fixed in Chrome 147.0.7727.55, for which no public exploit previously existed, combined with a disclosed V8 sandbox-bypass technique referenced in Chromium issue trackers (446113730/452605803) to achieve code execution (popping calculator) on the test target. The author frames this as evidence of the long-standing "patch gap" problem in Electron-based applications, which bundle their own Chromium and lag behind upstream security fixes by weeks or months, leaving known, patched V8 vulnerabilities exploitable in deployed apps. The exercise required significant human steering (~20 hours) and cost (~$2,283 in API usage, 2.3 billion tokens) across many failed attempts before succeeding, and the author notes that exploiting Claude Desktop's more current bundled Chromium would require an additional unpatched sandbox-escape bug and remains unproven. A real-world attack chain against Discord would still require a separate delivery vector such as an XSS on discord.com.
Entenda a falha
A vulnerabilidade
The main flaw is CVE-2026-5873, an out-of-bounds read and write in V8 (Chrome's JavaScript and WebAssembly engine), in the Turboshaft compiler for WebAssembly. An attacker needs the victim's browser or Electron app to run attacker-controlled JavaScript and WebAssembly. In the Discord scenario that means first getting script onto discord.com, for example through an XSS. The result is read/write on the V8 heap. Chrome 146 is affected and the fix is in 147.0.7727.55. Discord bundles Chrome 138, so the author treats it as exposed. For a full chain on sandboxed apps, a V8 sandbox bypass and a sandbox escape are also needed. The story also lists CVE-2025-12429 and CVE-2026-3910 (exploited in the wild), but the author could not turn either into an exploit.
Como funciona
A WebAssembly function is first run by Liftoff, the baseline compiler, which applies the memory bounds check correctly. When the function takes a 64-bit integer, truncates it to 32 bits, shifts it and uses it as a memory index, repeated execution triggers tier-up to the optimizing Turboshaft pipeline. At that step Turboshaft wrongly removes the bounds check. After that, memory accesses are no longer limited to the Wasm linear memory and can reach neighboring data in the V8 heap cage. The same code that trapped under Liftoff now reads and writes out of bounds.
Por que é vulnerável
The root cause is an incorrect optimization in Turboshaft's handling of bounds checks. After the i64-to-i32 truncation and shift, the optimizer decides the check is unnecessary and eliminates it, while the baseline tier correctly keeps it. Because the two tiers behave differently, the bug appears only after tier-up. The articles do not explain why it went unnoticed. The fix shipped in Chrome 147, and the author rebuilt a working primitive from the patch's git log alone, which shows how a public patch can be turned into an n-day.
Onde está
The articles place the flaw in V8's Turboshaft compiler pipeline for WebAssembly (bounds-check elimination after tier-up from Liftoff), and cite the Chromium tracker entry b/446113730 for the separate sandbox bypass; no file or function is named.
Como foi descoberta
CVE-2026-5873 was reported on 2026-03-25 and fixed in Chrome 147.0.7727.55; the articles do not say who found it. The Hacktron author did not discover it. He had Claude Opus review V8 git log patches between Chrome 138 and 147 to look for exploitable n-days, and pointed it at this bug himself after it failed on others. The sandbox bypass was already disclosed on the Chromium tracker. This builds on Hacktron's 2022 DEF CON research on patch gaps in Electron apps.
PoC pública
Hacktron says there is no public exploit for CVE-2026-5873. Its write-up describes the working chain and shows a short demonstration of the trigger, but no repository or exploit file is linked. The chain was built with Claude Opus and tested on Chrome for Testing 138.0.7204.232 (ARM64 macOS, run without the sandbox) and reaches code execution. A real attack on Discord would still need an XSS. Since the bug was exploited from a patch diff for about $2,283 in API costs, patch gaps in Electron apps are urgent to close.
Publicada em: www.hacktron.ai/blog/i-let-claude-opus-to-write-me-a-chrome-exploit ↗
Explicação gerada por IA a partir da matéria e dos artigos, em 24/10/2026 23:14.
Detalhes técnicos
CVE-2026-5873 is described as an out-of-bounds read/write vulnerability in V8's Turboshaft compiler for WebAssembly, where bounds checks are incorrectly eliminated after tier-up from the Liftoff baseline compiler for certain i64-to-i32 truncation and indexing patterns. The full exploit chain combined this heap OOB primitive with a known sandbox-bypass technique involving use-after-free corruption of V8's WasmCodePointerTable via dispatch table handle manipulation, enabling escape from V8's sandbox to arbitrary memory read/write and ultimately code execution. The demonstrated target was Chrome for Testing 138.0.7204.232 on ARM64 macOS, run without sandbox to simulate Discord's Electron main-window configuration (which lacks Chrome's full sandbox, requiring only two bugs instead of three for a full chain).
Remediação
The article does not propose a formal remediation but implies that Electron-based applications should keep bundled Chromium builds current with upstream security patches, and that defenders should be aware that patched V8 CVEs can remain exploitable for extended periods in applications with slow update cycles.
Linha do tempo
-
Researcher uses Claude Opus to build full exploit chain for V8 bug CVE-2026-5873 against Discord's outdated bundled Chromium
ler a análise desta fonte ocultar
A researcher from Hacktron (Mohan Pedhapati) describes an experiment in which Claude Opus was guided over roughly a week to develop a working exploit chain against Discord's bundled Chromium, which runs nine major versions behind upstream (Chrome 138). The chain leverages CVE-2026-5873, a V8 Turboshaft bounds-check elimination bug fixed in Chrome 147.0.7727.55, for which no public exploit previously existed, combined with a disclosed V8 sandbox-bypass technique referenced in Chromium issue trackers (446113730/452605803) to achieve code execution (popping calculator) on the test target. The author frames this as evidence of the long-standing "patch gap" problem in Electron-based applications, which bundle their own Chromium and lag behind upstream security fixes by weeks or months, leaving known, patched V8 vulnerabilities exploitable in deployed apps. The exercise required significant human steering (~20 hours) and cost (~$2,283 in API usage, 2.3 billion tokens) across many failed attempts before succeeding, and the author notes that exploiting Claude Desktop's more current bundled Chromium would require an additional unpatched sandbox-escape bug and remains unproven. A real-world attack chain against Discord would still require a separate delivery vector such as an XSS on discord.com.
Technical Details
CVE-2026-5873 is described as an out-of-bounds read/write vulnerability in V8's Turboshaft compiler for WebAssembly, where bounds checks are incorrectly eliminated after tier-up from the Liftoff baseline compiler for certain i64-to-i32 truncation and indexing patterns. The full exploit chain combined this heap OOB primitive with a known sandbox-bypass technique involving use-after-free corruption of V8's WasmCodePointerTable via dispatch table handle manipulation, enabling escape from V8's sandbox to arbitrary memory read/write and ultimately code execution. The demonstrated target was Chrome for Testing 138.0.7204.232 on ARM64 macOS, run without sandbox to simulate Discord's Electron main-window configuration (which lacks Chrome's full sandbox, requiring only two bugs instead of three for a full chain).
Remediation
The article does not propose a formal remediation but implies that Electron-based applications should keep bundled Chromium builds current with upstream security patches, and that defenders should be aware that patched V8 CVEs can remain exploitable for extended periods in applications with slow update cycles.