← Lab /Security & privacy

Uninitialized variable in WebKit DFG JIT enables remote code execution on Safari

A use-of-uninitialized-variable bug in the WebKit DFG compiler can be chained with PAC/APRR bypasses to achieve renderer remote code execution on macOS and iOS.

Security & privacy Exodus Intelligence 4 Aug 2025 Disclosure Real-world evidence

Published as “Oops Safari, I think You Spilled Something!”

Why it matters

The bug enables remote code execution on Safari, demonstrating that JIT compiler mis-management of register spills can break the browser’s security guarantees.

Summary

Exodus Intelligence discovered a use-of-uninitialized-variable flaw in WebKit's DFG JIT compiler that causes a null-pointer dereference when a register spill occurs after a slow-path jump. By spraying the stack and creating a type-confusion between objects, they turn the crash into an out-of-bounds write, gaining arbitrary read/write primitives and, with a PAC bypass, full RCE on Apple Silicon. The bug (CVE-2024-44308) was patched in November 2024 by moving the register allocation before the deoptimization point.

What they found 2

  1. The vulnerability is a use-of-uninitialized-variable bug in the DFG compiler.

    “The bug we are exploring in this post is a use-of-uninitialized-variable vulnerability found in the DFG compiler.”

  2. The root cause is a missing register spill after a jump to a slow path.

    “In the end, the issue comes down to improperly allocating a register after a jump to a slow path has been generated.”

Caveats 3

  • turning this into full RCE on iOS or macOS requires an additional Pointer Authentication (PAC) bypass
  • The code must store a double to an integer TypedArray that is either resizeable or shared, with a value that cannot be truncated to an int32.
  • It will only manifest in a scenario where a register gets spilled to the stack.

What’s new here 4

  • Identification of a use-of-uninitialized-variable bug in the DFG compiler’s register spill handling.
  • Demonstration of a full exploitation chain: stack spray, type confusion, OOB write, arbitrary read/write, and PAC bypass for RCE.
  • Detailed root-cause analysis linking the missing spill to a slow-path jump.
  • Public disclosure of CVE-2024-44308 and the upstream patch.