Skip to content
Memory corruption Advisory Advanced CVE-2023-1214

GHSL-2023-023: Type confusion in the Chrome renderer - CVE-2023-1214

A type confusion flaw in Chrome's V8 value deserializer allowed a malicious website to trigger memory corruption in the renderer. An attacker could potentially exploit this to execute arbitrary code or cause a crash.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

Tested on: Chrome version: d8 main branch commit de4e492 and Chrome 109.0.5414.119

m-y-mo, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the deserializer assumed that a map would remain a fast-properties map after updating a deprecated map, but the update could normalize it into a dictionary map, causing a type confusion.

Impact

This could allow a malicious website to cause type confusion in the Chrome renderer, potentially leading to remote code execution or a crash.

What the attacker needed

Victim visits a malicious website

How it was found

  1. Create an object with properties a, a1, and c to establish transitions.
  2. Create an array where the first element has a double value for a1 and subsequent elements have integer values and unique properties.
  3. Create a message object containing the first object and a second object that references the array.
  4. Deserialize the message object, causing the target map to become deprecated and then normalized into a dictionary map.
  5. Trigger the type confusion between fast and dictionary properties.

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.

When Chrome receives data from a website, it sometimes rebuilds JavaScript objects. A bug in this rebuilding process could confuse the browser about the type of data it is handling, leading to memory errors. A malicious site could exploit this to run harmful code on your computer.

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 by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

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.