Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisory

Safari WebKit Bugs Enabled Arbitrary Read/Write via JIT and Type Confusion

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen May 24, 2021

Safari WebKit Bugs Enabled Arbitrary Read/Write via JIT and Type Confusion

Researchers detailed two Safari WebKit exploitation paths that turned renderer memory corruption into reliable arbitrary read/write primitives on macOS and iOS. Google Project Zero showed how CVE-2020-9802, a JavaScriptCore JIT flaw, could be exploited starting from addrof and fakeobj primitives, then bypass WebKit mitigations including StructureID randomization, the Gigacage, and PACCage. The write-up demonstrated leaking a valid StructureID with a fake JSArray and then abusing TypedArray handling in the DFG JIT to escape the Gigacage and gain fast, stable arbitrary memory access.

Theori separately analyzed a Safari AudioWorklet type confusion introduced in Safari 14.1, where WebKit failed to verify that a returned JavaScript object was a JSAudioWorkletProcessor. That missing type check allowed attacker-controlled objects to be confused and used to corrupt JSArray butterfly pointers, again yielding addrof, fakeobj, and arbitrary read/write capabilities. The exploit reportedly worked on iOS 14.6 and macOS 11.4 even after the source patch was public, highlighting patch-gap risk and reinforcing concerns that existing WebKit hardening measures could still be bypassed in practice.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Sep 1, 2020 – May 24, 2021
  1. May 24, 20216y ago

    Theori discloses Safari AudioWorklet type confusion and patch-gap risk

    Theori published an analysis of a Safari AudioWorklet type confusion vulnerability in WebKit, explaining that the bug was introduced with Safari 14.1 and that a missing jsDynamicCast check enabled memory corruption and exploitation. The write-up said the exploit remained reachable on iOS releases after the patch became public and reportedly worked on iOS 14.6 and macOS 11.4.

    Patch Gapping a Safari Type Confusion - Theori BLOG
  2. Sep 1, 20206y ago

    Project Zero publishes Safari JIT exploitation techniques for CVE-2020-9802

    Google Project Zero published the second part of its JITSploitation series, detailing how to turn a JavaScriptCore JIT bug tracked as CVE-2020-9802 into stable arbitrary memory read/write in Safari despite mitigations such as StructureID randomization, the Gigacage, and the PACCage.

    JITSploitation II: Getting Read/Write - Project Zero
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
SafariWebkit

Organizations

1 linked
Apple
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.