Google Chrome V8 CVE-2024-0517 Out-of-Bounds Write Code Execution
A logic flaw in V8's Maglev compiler when compiling a class with a parent class and a new.target reference could lead to an out-of-bounds write. An attacker could potentially exploit this to achieve code execution in the renderer.
blog.exodusintel.com
Published on blog.exodusintel.com
JANUARY 19, 2024 Vulnerability Analysis, Exploit Techniques, General Research
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
Impact
An attacker could potentially exploit this out-of-bounds write to achieve code execution in the renderer, though the text does not demonstrate a full exploit.
What the attacker needed
Victim runs malicious JavaScript; Chrome version vulnerable to CVE-2024-0517
How it was found
- Create a class with a parent class and a constructor that uses new.target.
- Use Reflect.construct to instantiate the class with the parent as new.target.
- Trigger the Maglev compiler by running the code multiple times.
- Observe a crash in a debug build due to an out-of-bounds write.
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.
This report describes a bug in Chrome's JavaScript engine, V8. When V8 tries to speed up certain code involving classes and inheritance, it makes a mistake that can cause memory corruption. An attacker could use this to run their own code on a victim's computer, but only if they can trick the victim into visiting a malicious webpage.
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.