Skip to content
Memory corruption Write-up Advanced

CVE-2024-4947: Type Confusion in V8

A type confusion vulnerability existed in Chrome's V8 JavaScript engine. An attacker could exploit it to execute arbitrary code, and Google is aware that an exploit exists in the wild.

chromereleases.googleblog.com

Published on chromereleases.googleblog.com

The Chrome team is delighted to announce the promotion of Chrome 125 to the stable channel for Windows, Mac and Linux. This will roll out over the coming days/weeks.

The author, on chromereleases.googleblog.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

This is a Chrome stable channel release announcement, not a full technical write-up. It announces the promotion of Chrome 125 to the stable channel for Windows, Mac and Linux, and lists the security fixes that shipped in that release, including one that Google says was exploited in the wild.

The release covered here is Chrome 125.0.6422.60 on Linux and 125.0.6422.60/.61 on Windows and Mac. The announcement notes that the rollout happens over the coming days and weeks, and points to the commit log between 124.0.6367.208 and 125.0.6422.61 for the full list of changes.

The security section states that the update includes 9 security fixes, and highlights the fixes contributed by external researchers. Access to bug details and links may stay restricted until a majority of users have updated, and restrictions are also kept when the bug lives in a third party library that other projects depend on and have not yet fixed.

Setup

There are no accounts, roles or tooling to set up: this is a vendor advisory. The relevant preconditions for a reader are simply the affected channel and versions. The fixes below shipped in Chrome 125.0.6422.60 (Linux) and 125.0.6422.60/.61 (Windows, Mac), so any installation on an earlier build in the 124 line, such as 124.0.6367.208, predates them.

The advisory lists four externally reported issues in this release:

Severity CVE Component Reported by Reported on Reward
High CVE-2024-4947 Type Confusion in V8 Vasily Berdnikov (@vaber_b) and Boris Larin (@oct0xor) of Kaspersky 2024-05-13 TBD
High CVE-2024-4948 Use after free in Dawn wgslfuzz 2024-04-09 TBD
Medium CVE-2024-4949 Use after free in V8 Ganjiang Zhou (@refrain_areu) of ChaMd5-H1 team 2024-02-24 $7000
Low CVE-2024-4950 Inappropriate implementation in Downloads Shaheen Fazim 2023-06-06 $1000

Each entry links to its Chromium issue tracker ID: 340221135, 333414294, 326607001 and 40065403 respectively. The reward column reads TBD for the two High issues, meaning the amount had not been published at the time of the announcement.

Finding it

The advisory does not describe how any of the bugs were found. What it does say is that Google is aware that an exploit for CVE-2024-4947 exists in the wild. That single sentence is the reason this release matters beyond a routine stable update: Google is aware that an exploit for a type confusion in V8, the JavaScript engine, exists in the wild.

The other three issues are ordinary externally reported memory-safety and implementation bugs: a use after free in Dawn (Chrome's WebGPU implementation), a use after free in V8, and an inappropriate implementation in Downloads. None of them is flagged as exploited.

Exploitation

The advisory contains no exploitation detail: no proof of concept, no request or response, no crash trace and no description of the confused types. What it establishes is the timeline and the exposure window:

  1. CVE-2024-4947 was reported to Google on 2024-05-13.
  2. It was fixed and disclosed as part of the Chrome 125 stable release, 125.0.6422.60 on Linux and 125.0.6422.60/.61 on Windows and Mac.
  3. Google states that an exploit exists in the wild, so exploitation happened against users running builds before that release.

Because the bug is a type confusion in V8, the engine that executes JavaScript in the renderer, the general shape of the risk is that a crafted page can drive the engine into treating an object as a type it is not. What an attacker gains from that in this specific case is not stated in the advisory, and the bug details and links may remain restricted until most users have updated.

Root cause

The advisory names the weakness only as a type confusion in V8. It does not identify the faulty code, the commit that fixed it, or the conditions under which the confusion occurs. Any statement about the precise root cause would be speculation, so the honest reading is that the public text gives the component and the class of bug and nothing more.

Why the existing defences did not stop it is likewise not covered. The advisory does list the tooling Google credits for detecting many of its security bugs in general: AddressSanitizer, MemorySanitizer, UndefinedBehaviorSanitizer, Control Flow Integrity, libFuzzer and AFL. It does not say which, if any, of these was involved in finding or preventing CVE-2024-4947.

Impact

Per the advisory, CVE-2024-4947 is rated High and an exploit for it exists in the wild. That means real users on unpatched builds were exposed, not just researchers. The advisory does not state what the exploit achieves (for example code execution in the renderer, a sandbox escape, or something else), who was targeted, or how widely it was used.

The other issues are rated High (CVE-2024-4948 in Dawn), Medium (CVE-2024-4949, use after free in V8) and Low (CVE-2024-4950, inappropriate implementation in Downloads). Only CVE-2024-4947 is described as exploited in the wild.

Fix

Google shipped the fix in Chrome 125.0.6422.60 (Linux) and 125.0.6422.60/.61 (Windows, Mac), as part of a release containing 9 security fixes. The advisory also records an internal fix entry, issue 340880302, described as various fixes from internal audits, fuzzing and other initiatives.

The advisory notes that rollout takes days to weeks, so a device that has not yet received the update remains on the pre-fix build until it does.

Variants to test

The advisory gives no reproduction material, so there is no payload to adapt.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Google publishes a short announcement every time it releases a new version of the Chrome browser. This one says that Chrome 125 has been promoted to the "stable channel", which simply means it is now the normal version that ordinary people get when they update their browser. The announcement also lists the security problems that this version fixes.

One of those problems, called CVE-2024-4947, is serious for a specific reason: Google writes that it knows an exploit for it exists in the wild. An "exploit" is a piece of code that actually takes advantage of a bug to do something harmful. "In the wild" means it was seen being used against real people, not just demonstrated in a lab.

The bug is a "type confusion" in V8. V8 is the part of Chrome that reads and runs the JavaScript code that websites contain. A type confusion is a bug where a program loses track of what kind of thing a piece of data is, and then treats it as the wrong kind. The announcement does not explain how the bug works, who was attacked, or what the attacker could achieve. It only names the component, the kind of bug, the people who reported it, and the fact that it was exploited.

This article walks through the announcement in the order it is written, explains each term as it appears, and points out what the text does and does not tell us.

Context

The announcement is not a detailed technical report. It is a release note: a short message from the Chrome team saying a new version is ready and listing what changed. It covers Windows, Mac and Linux, the three families of operating system that Chrome runs on.

The version numbers are worth reading carefully, because they are how you tell whether a computer is protected:

  • On Linux, the release is 125.0.6422.60.
  • On Windows and Mac, the release is 125.0.6422.60/.61, which means both the .60 and .61 builds are part of the same release.

A version number like this is just a label made of numbers separated by dots. The first number (125) is the major version. The rest identify the exact build. When a new build fixes security bugs, the number changes, and that is how you know you have the fixed one.

The announcement says the rollout "will roll out over the coming days/weeks". This matters: Google does not flip a switch and update every computer at once. Updates are delivered gradually, so some people get the fix before others. Until your own browser has updated, you are still running the old, unfixed build.

The announcement also links to a "log" of changes between two versions, 124.0.6367.208 and 125.0.6422.61. A commit log is a list of every code change made between those two points. It is useful for developers, but it is not a description of the security bugs.

The security section

The announcement states that the update includes 9 security fixes. It then highlights the ones that came from external researchers, meaning people outside Google who found and reported the bugs. It also explains a policy: details and links about a bug may stay restricted until a majority of users have updated. The reason is simple. If Google published the exact details immediately, attackers could use them against everyone who had not yet received the update. The same restriction is kept when the bug lives in a third party library, meaning a piece of software made by another company that many projects rely on, and that other projects have not yet fixed.

Setup

There is nothing to install or configure to understand this announcement. It is a vendor advisory, which is the industry term for an official notice from the company that makes a product, telling customers about a security issue and what to do about it. There are no accounts, no tools and no test environment.

The only precondition is the version of Chrome on the machine you care about. The fixes described here are in Chrome 125.0.6422.60 on Linux and 125.0.6422.60/.61 on Windows and Mac. Any installation on an earlier build, such as 124.0.6367.208, is older than the fix and therefore does not contain it.

The announcement lists four issues that were reported by external researchers. Here they are in a table, with each column explained underneath:

Severity CVE Component Reported by Reported on Reward
High CVE-2024-4947 Type Confusion in V8 Vasily Berdnikov (@vaber_b) and Boris Larin (@oct0xor) of Kaspersky 2024-05-13 TBD
High CVE-2024-4948 Use after free in Dawn wgslfuzz 2024-04-09 TBD
Medium CVE-2024-4949 Use after free in V8 Ganjiang Zhou (@refrain_areu) of ChaMd5-H1 team 2024-02-24 $7000
Low CVE-2024-4950 Inappropriate implementation in Downloads Shaheen Fazim 2023-06-06 $1000

What each column means:

  • Severity is Google's own rating of how serious the bug is. High, Medium and Low are relative labels, not precise measurements.
  • CVE stands for Common Vulnerabilities and Exposures. It is a public identifier, like a serial number, given to a known security bug so that everyone in the world can refer to the same issue unambiguously. CVE-2024-4947 is one specific bug; the year in the name is part of the identifier.
  • Component is the part of Chrome where the bug lives. V8 is the JavaScript engine. Dawn is Chrome's implementation of WebGPU, a technology that lets web pages use the graphics card for heavy computation and rendering. Downloads is the part of the browser that handles downloading files.
  • Reported by names the person or team who told Google about the bug. Some use a handle, which is an online nickname, in brackets.
  • Reported on is the date the report reached Google.
  • Reward is the money Google paid under its bug bounty programme, which pays researchers for finding and reporting security bugs responsibly. TBD means "to be determined": the amount had not been published at the time of the announcement.

Each entry also links to a Chromium issue tracker ID. The issue tracker is Google's internal system for tracking bugs. The four IDs are 340221135, 333414294, 326607001 and 40065403, in the same order as the table. At the time of the announcement, the details behind those links may have been restricted, for the reason explained above.

Two of the four bugs are described as "use after free". This is a common kind of memory bug. Imagine borrowing a book from a library, returning it, and then still trying to read from it as if you still had it. In a program, it means the code frees a chunk of memory and then keeps using it. If something else has been placed in that memory in the meantime, the program reads or writes the wrong data, which an attacker may be able to influence.

The fourth bug is described as "inappropriate implementation in Downloads". That is a vaguer label. It means the feature does not behave the way it should, rather than that memory is being mishandled. The announcement does not say what the inappropriate behaviour is.

Finding it

The announcement does not describe how any of these bugs were found. It does not say whether the researchers used a tool, read the code, or stumbled on the behaviour by accident.

What it does say is one sentence: Google is aware that an exploit for CVE-2024-4947 exists in the wild. That sentence is the reason this release is more than a routine update. Google is aware that an exploit for a type confusion in V8, the engine that runs the JavaScript of every page you visit, exists in the wild.

The other three issues are described as ordinary externally reported bugs: a use after free in Dawn, a use after free in V8, and an inappropriate implementation in Downloads. None of them is flagged as exploited.

Exploitation

The announcement contains no exploitation detail. There is no proof of concept (a small demonstration that triggers the bug), no request or response, no crash trace (the technical output a program produces when it crashes), and no description of which types get confused.

What it does establish is a timeline and an exposure window.

  1. CVE-2024-4947 was reported to Google on 2024-05-13.
  2. It was fixed and disclosed as part of the Chrome 125 stable release, 125.0.6422.60 on Linux and 125.0.6422.60/.61 on Windows and Mac.
  3. Google states that an exploit exists in the wild, so exploitation happened against users running builds before that release.

Because the bug is a type confusion in V8, the engine that executes JavaScript inside the renderer, the general shape of the risk can be explained without knowing the specifics. The renderer is the part of the browser that turns a web page into what you see and runs its scripts. It is deliberately kept separate from the rest of the system, a design called the sandbox, so that a bug there is contained. A crafted page can drive the engine into treating an object as a type it is not. What an attacker gains from that in this specific case is not stated in the announcement, and the bug details and links may remain restricted until most users have updated.

Root cause

The announcement names the weakness only as a type confusion in V8. It does not identify the faulty code, the commit that fixed it, or the conditions under which the confusion occurs. Any statement about the precise root cause would be speculation, so the honest reading is that the public text gives the component and the class of bug and nothing more.

Why the existing defences did not stop it is likewise not covered. The announcement does list the tooling Google credits for detecting many of its security bugs in general:

  • AddressSanitizer and MemorySanitizer are tools that watch a program's memory use while it runs and flag mistakes such as reading memory that has been freed or reading uninitialised data.
  • UndefinedBehaviorSanitizer flags code whose behaviour the programming language does not define, which is often a sign of a bug.
  • Control Flow Integrity is a defence that checks a program jumps only to places it is supposed to jump to, which makes some attacks harder.
  • libFuzzer and AFL are fuzzers. A fuzzer feeds a program huge numbers of generated inputs, watching for crashes, in the hope of finding the input that breaks it.

The announcement does not say which, if any, of these was involved in finding or preventing CVE-2024-4947.

Impact

Per the announcement, CVE-2024-4947 is rated High and an exploit for it exists in the wild. That means real users on unpatched builds were exposed, not just researchers in a lab. The announcement does not state what the exploit achieves, for example code execution in the renderer, a sandbox escape, or something else. It also does not say who was targeted or how widely the exploit was used.

The other issues are rated High (CVE-2024-4948 in Dawn), Medium (CVE-2024-4949, use after free in V8) and Low (CVE-2024-4950, inappropriate implementation in Downloads). Only CVE-2024-4947 is described as exploited in the wild.

Fix

Google shipped the fix in Chrome 125.0.6422.60 on Linux and 125.0.6422.60/.61 on Windows and Mac, as part of a release containing 9 security fixes. The announcement also records an internal fix entry, issue 340880302, described as various fixes from internal audits, fuzzing and other initiatives. In other words, some of the fixes in this release came from Google's own testing rather than from outside reports.

The announcement notes that rollout takes days to weeks, so a device that has not yet received the update remains on the pre-fix build until it does.

Variants to test

The announcement gives no reproduction material, so there is no payload to adapt.

A few of those terms deserve a plain explanation. "Fuzzing" means feeding a program large amounts of generated input to see what breaks. "Garbage-collected objects" are pieces of memory that the language runtime frees automatically once nothing uses them any more; a use after free happens when code keeps using one after that automatic cleanup. "Patch diffing" means comparing the old and new versions of the code to see exactly what changed, which often points straight at the bug.

Glossary

  • Advisory: an official notice from a vendor about a security issue and what to do about it.
  • Bug bounty: a programme that pays people for finding and responsibly reporting security bugs.
  • Commit log: a list of code changes made between two versions of a project.
  • Component: a distinct part of a larger piece of software, such as its JavaScript engine or its download manager.
  • CVE: Common Vulnerabilities and Exposures, a public identifier given to a known security bug so everyone can refer to it unambiguously.
  • Dawn: Chrome's implementation of WebGPU, the technology that lets web pages use the graphics card.
  • Exploit: code that takes advantage of a bug to cause harm.
  • In the wild: seen being used against real users, as opposed to demonstrated in a lab.
  • JavaScript: the programming language that web pages use to be interactive.
  • Proof of concept: a small demonstration that triggers a bug.
  • Renderer: the part of the browser that displays a page and runs its scripts, kept separate from the rest of the system for safety.
  • Sandbox: the isolation that keeps a compromised renderer from reaching the rest of the computer.
  • Severity: a vendor's rating of how serious a bug is, such as High, Medium or Low.
  • Stable channel: the normal, fully tested version of a browser that ordinary users receive.
  • Third party library: software made by another company that a project depends on.
  • Type confusion: a bug where a program treats data as the wrong kind of thing.
  • Use after free: a bug where a program keeps using memory after it has been freed.
  • V8: the JavaScript engine inside Chrome, which reads and runs the scripts on web pages.
  • WebGPU: a web technology that lets pages use the graphics card for rendering and computation.
  • Fuzzing: feeding a program large amounts of generated input to find crashes.
  • AddressSanitizer, MemorySanitizer, UndefinedBehaviorSanitizer: tools that watch a running program for memory and language-level mistakes.
  • Control Flow Integrity: a defence that checks a program only jumps where it is supposed to.
  • libFuzzer, AFL: fuzzing tools that generate inputs automatically.
  • Patch diffing: comparing old and new code to see exactly what a fix changed.

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.