Skip to content
Memory corruption Advisory Advanced CVE-2024-5274

Type Confusion in V8 (CVE-2024-5274)

A bug in V8's scope analysis can cause type confusion. An attacker could exploit this to achieve arbitrary read/write, as demonstrated by a proof of concept reconstructed from an exploit chain.

Clément Lecigne Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 4 days

VULNERABILITY DETAILS

NOTE: TAG has evidence that the following bug is being used in the wild. Therefore, this bug is subject to TAG's 7 day disclosure deadline.

There is a bug in V8's scope analysis that can result in type confusions. The following pocs were reconstructed from an exploit chain delivered to Chrome 124 and the bug also triggers on head.

JavaScript
(function() {
    ((XXX = class {
      static {
        this;
      }
      constructor() {}
    }) => {})();
})();

VERSION

Chrome Version: 125.0.6422.60 + head

REPRODUCTION CASE

Minimal poc that triggers a dcheck in dcheck.js

Arbitrary read/write primitive can be found in rw.js

CREDIT INFORMATION

Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited?

Reporter credit: Clément Lecigne of Google's Threat Analysis Group and Brendon Tiszka

The original report as published on the Chromium issue tracker, by Clément Lecigne of Google's Threat Analysis Group and Brendon Tiszka of Chrome Security. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

Impact

An attacker could achieve arbitrary read/write, potentially leading to code execution, and the bug is being used in the wild.

What the attacker needed

Chrome 125.0.6422.60 or head; Ability to run JavaScript

How it was found

  1. Run the provided JavaScript snippet in Chrome 125.0.6422.60 or head.
  2. Observe a dcheck failure in dcheck.js.
  3. Use the arbitrary read/write primitive in rw.js.

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. A type confusion bug means the engine can mistake one kind of data for another, which can lead to memory corruption. This report shows a small JavaScript snippet that triggers the bug, and the researchers found they could use it to read and write arbitrary memory.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.