Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-23222: Arbitrary Code Execution in Apple WebKit via Type Confusion

Published Jan 23, 2024 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS8.8High · v3.1
EPSS11.0%96th percentile
CISA KEVYesAdded Jan 23, 2024
In the wildActivePer CISA KEV
Vendor
Apple
IdentifiersCVE-2024-23222CWE-843 · Access of Resource Using…
Also known ascassowary

CVE-2024-23222 is a type confusion vulnerability in Apple's WebKit browser engine caused by insufficient type checking. Processing maliciously crafted web content can enable arbitrary code execution in the browser's WebContent renderer process. The vulnerability has been actively exploited, including through the Coruna exploit kit's cassowary component targeting iOS 16.6 through 17.2.1. Apple addressed the issue with improved checks, initially shipping the iOS 17.3 fix on January 22, 2024, and subsequently backporting protection to older devices.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits attacker-controlled code execution within the affected WebKit renderer process, compromising that process's integrity and potentially exposing data accessible to it. In Coruna attacks, this vulnerability provides initial browser exploitation before separate protection-bypass and privilege-escalation stages. Sandbox escape, kernel privileges, full device compromise, and device-wide data theft are not established consequences of this vulnerability alone.

Mitigation

If you can’t patch tonight, do this now.

Enable Lockdown Mode on supported devices when immediate updating is not possible; it blocks the documented Coruna attack chains. Keep Safari's protection against known malicious websites enabled and restrict access to malicious or untrusted web content. These measures reduce exposure but do not replace installation of the WebKit fix.

Remediation

Patch, then assume compromise.

Install the latest supported Apple security updates. Releases containing the fix include Safari 17.3; iOS and iPadOS 15.8.7, 16.7.5, and 17.3; macOS Monterey 12.7.3, Ventura 13.6.4, and Sonoma 14.3; tvOS 17.3; and visionOS 1.0.2. For legacy devices restricted to iOS or iPadOS 15, install version 15.8.7 or a later supported release. Apple corrected the underlying type confusion through improved checks.

Public exploits

Exploits

6 exploits validated by Mallory's analysis.

View more in app →
Cassowary-CVE-2024-23222-x86_64Repository contains two related but distinct JavaScriptCore/WebKit exploit artifacts plus a helper deobfuscator. The top-level README is a detailed technical write-up of CVE-2024-23222, describing a TOCTOU race in JavaScriptCore DFG constant folding (Graph::tryGetConstantProperty) and how stale JSValue cell pointers can later crash in freeze() or GC marking. The practical Linux PoC is toctou_clean_asan_v2.js, a parameterized jsc-shell harness that warms a property-read probe for DFG compilation, waits for an instrumented race window, then drops references and forces GC to trigger an ASan-visible stale-cell crash. It supports multiple GC modes, pressure strategies, release timing controls, and optional synchronization through the file /tmp/jsc_toctou_signal. This is a real exploit PoC, not just detection, but it is research-oriented and depends on a specially instrumented vulnerable engine. The cassowary-CVE-2024-23222/ directory contains an obfuscated iOS WebKit exploit module and analysis tooling. deobfuscate.js is a Node.js utility that decodes XOR-obfuscated strings/constants, cleans minified literals, renames APIs, and writes a deobfuscated copy. yAerzw_d6cb72f5.js is the original obfuscated exploit. yAerzw_d6cb72f5_deobfuscated.js and yAerzw_d6cb72f5_analytic_rewrite.js show the exploit’s structure clearly: it targets iOS 16.6–17.2.1, uses JIT type confusion plus WebAssembly instances to build an arbitrary read/write primitive in WebContent, warms JIT-compiled functions, triggers confusion via crafted argument/accessor behavior, resolves internal addresses, initializes a Wasm-backed memory primitive, then scans memory from a WebAssembly.Table executable pointer backward by 0x1000 pages until the Mach-O magic 0xfeedfacf is found. No external network C2 or remote URLs are present; the notable observables are local file paths and in-memory target artifacts. Overall, the repository’s purpose is exploit research and analysis for CVE-2024-23222, including both a Linux crash reproducer and a deobfuscated in-the-wild-style iOS exploitation component.FuzzySecurity · Disclosed Mar 13, 2026 · markdown · javascript · browser · networkless local JSC shell · race condition / TOCTOU in JIT compilerOperationalcoruna_analysisThis repository is a deobfuscated, split-out browser exploit kit for Apple iOS targeting CVE-2024-23222 in WebKit/JavaScriptCore, not a benign analysis tool despite the misleading README. The structure is centered around group_loader.html, which acts as the main entry point and loads the core modules: utility_module.js, platform_module.js, sha256.js, module_loader.js, exploit_trigger.js, and fingerprint.js. The code is clearly organized as a staged exploit chain. Core purpose and flow: fingerprint.js first performs victim profiling by checking the user agent, limiting execution to iOS 13-17, discovering the public IP via icanhazip/ipify, and POSTing telemetry including a campaign code to https://8df7.cc/api/ip-sync/sync. group_loader.html also embeds Google Analytics tracking (G-LKHD0572ES), suggesting campaign measurement. exploit_trigger.js then orchestrates the actual exploitation: it detects platform/version, checks for Lockdown Mode and simulator conditions, loads version-specific stage modules, executes a WebAssembly/JSC memory corruption primitive, detects runtime type, conditionally loads a PAC bypass for ARM64e/PAC-enabled devices, and finally loads one of two sandbox-escape stage3 variants. It reports result codes through a telemetry helper, though the visible path is blank in the provided deobfuscation. module_loader.js implements a custom module system (obChTK) using SHA1-like module IDs and remote loading. It derives remote filenames as SHA256(salt + moduleId).substring(0,40)+'.js', using salt cecd08aa6ff548c2 and a base URL derived from ./7a7d99099b035b2c6512b6ebeeea6df1ede70fbb.min.js. This means additional exploit stages are intended to be fetched dynamically from the same hosting path. The loader executes fetched code with new Function(), caches modules, and supports base64-encoded module registration. The exploitation internals are substantial. utility_module.js provides low-level integer, pointer, typed-array, and conversion helpers needed for memory corruption. platform_module.js performs iOS version parsing, runtime selection, Lockdown Mode and simulator checks, PAC state handling, and Mach-O image parsing support. stage1_wasm_primitives.js contains the main browser exploit primitive: a WebAssembly-based JavaScriptCore type-confusion chain that yields addrof/fakeobj and arbitrary read/write, then scans memory backward from JIT code to locate a Mach-O header. stage2_pac_bypass.js implements a PAC bypass using Intl.Segmenter iterator/vtable corruption and Mach-O/gadget discovery, enabling execution on PAC-protected ARM64e devices. Post-exploitation delivery is represented by stage4_payload_stub.js, stage5_main_payload.js, and stage6_README.md. Stage 4 and Stage 5 both invoke window["qbrdr"] with encrypted base64 payloads; qbrdr is described as a decryption/execution handler registered by earlier stages. Stage 5 is documented as a PLASMAGRID stager/implant loader with persistence, exfiltration, remote access, and C2 behavior. Stage 6 is described as a non-JavaScript encrypted/binary blob loaded later in the chain. Overall, this is a real, multi-stage, operational exploit kit with telemetry, dynamic module retrieval, exploit staging, and encrypted payload delivery.Meysamshiralii · Disclosed Mar 15, 2026 · javascript · html · browser · networkOperationalwebkit-cve-2024-23222This repository is a multi-file Apple WebKit/JSC exploit research collection centered on CVE-2024-23222, with numerous auxiliary HTML PoCs for other Safari/WebKit vulnerabilities. It is not a framework module; it is a standalone research repo containing browser-delivered exploit pages, a local Python HTTP collector, and one native C helper. Structure: - README.md documents the intended full exploit chain: a malicious HTML page triggers CVE-2024-23222 in JavaScriptCore, obtains addrof/read64/write64 primitives, then uses a crafted WebAssembly indirect-call trampoline to invoke native libc functions on an A11 iPhone X running iOS 16.4.1. The documented post-exploitation action is opening and writing /tmp/pwned_cve_2024_23222, presented as proof of sandbox escape. - poc/server.py is the operator-side infrastructure. It serves HTML files over HTTP on port 8765, exposes GET/POST /results for telemetry collection, and GET/POST /signal for auxiliary signaling. - find_gigacage.c is a native Mach-based memory scanner that uses task_for_pid, vm_region_recurse_64, and vm_read to locate JSC/Gigacage-related regions and sentinels in another process. This supports exploit development and address discovery rather than remote exploitation. - poc/exploit_23222.html is an earlier standalone Stage 1 exploit for CVE-2024-23222. It contains the core exploitation logic: WebAssembly modules, type confusion setup, arbitrary read/write primitives, addrof, and JIT/JSC structure offset handling. It posts progress markers and results back to /results. - poc/ironloader_diag.html is a diagnostic page for CVE-2023-32409 (“IronLoader”), reusing similar Stage 1 primitives and adding logic to inspect IPC/GPU-related structures. - The remaining poc/cve-*.html files are mostly self-contained browser PoCs or vulnerability checkers for specific CVEs. They generally trigger a suspicious code path, observe crashes/misbehavior, and POST a verdict plus logs to /results. Several are more detection-oriented than weaponized. Main exploit capabilities: - Browser-based initial access via a malicious HTML page. - JSC/WebAssembly memory corruption leading to arbitrary address disclosure and 64-bit read/write in the renderer. - Arbitrary native function invocation by overwriting a WASM indirect-call target slot. - Demonstrated sandbox escape behavior by calling _open/_write on /tmp/pwned_cve_2024_23222. - Extensive telemetry/logging back to a local HTTP server. Notable targeting details: - Primary target is Apple iPhone X (A11, no PAC), iOS 16.4.1, Safari 16.4.1. - The exploit assumes device/version-specific offsets and an ASLR slide known in advance/offline. - README explicitly notes limitations such as inability to directly read dyld cache from JS and failure of mmap(PROT_EXEC), indicating this is a real exploit-development repo rather than a simple detector. Assessment: - The repository contains genuine exploit code and PoCs. The main CVE-2024-23222 chain is operational but environment-specific, with a basic hardcoded payload (proof-file creation) rather than a flexible post-exploitation framework. Auxiliary files broaden the repo into a WebKit vulnerability lab with multiple browser-based tests and diagnostics.Umit-MHL · Disclosed May 19, 2026 · markdown · c · browser · web · localOperationalCVE-2024-23222-Coruna-Exploit-Kit-DeobfuscatedRepository appears to be a partial/deobfuscation-oriented research snapshot of an iOS WebKit/JSC exploit kit chain for CVE-2024-23222. Structure and purpose: - group_loader.html: Browser entry-point HTML that disables caching and loads multiple JavaScript modules (utility/platform/sha256/module loader/exploit trigger/fingerprint). It also embeds Google Analytics and comments describing the original (larger) inline ‘group.html’ and its module IDs. - utility_module.js: Substantial low-level helper library implementing typed-array reinterpret casts, Int64/BigInt conversions, pointer-tag stripping for JSC tagged pointers, encoding/decoding helpers (base64/LZW/LEB128 mentioned), and general primitives typically required to build addrof/fakeobj and pointer arithmetic in JSC exploits. - ConceptualJavaScript.js: High-level, mostly stubbed pseudocode outlining a 3-stage chain: (1) WASM-based memory primitives via type confusion, (2) PAC bypass via Intl.Segmenter iterator vtable corruption, (3) sandbox escape via Mach-O parsing/symbol resolution and payload execution, followed by deliverPayload(). - README.md: Claims iOS 13.0–17.x targeting WebKit/JSC; describes stages 1–6 including payload delivery of an encrypted blob and a “PLASMAGRID” stager; references additional modules (exploit_trigger.js, stage1/2/3 files, fingerprint.js) that are not present in the provided file list. Exploit capabilities (as represented in this snapshot): - Browser-based exploitation path (malicious HTML/JS) intended to trigger a JSC type confusion (CVE-2024-23222) to obtain memory read/write primitives (via WASM), then bypass ARM64e PAC, then escape the WebKit sandbox. - Telemetry/fingerprinting is indicated by comments: an IP fingerprinting IIFE sending telemetry to domain 8df7.cc (implementation file fingerprint.js is referenced but missing here). - Analytics tracking via Google Tag Manager (gtag) is explicitly included. Limitations of the snapshot: - Several key modules referenced by the loader and README (platform_module.js, sha256.js, module_loader.js, exploit_trigger.js, fingerprint.js) are not included in the provided repository contents, and ConceptualJavaScript.js contains placeholders (corruptIterator, parseWebKitMacho, resolveSymbols, buildPayload, executePayload, deliverPayload). As-is, this looks closer to a research/deobfuscation artifact and utility library than a fully runnable exploit kit.Rohitberiwala · Disclosed Mar 10, 2026 · javascript · html · browser (remote) via malicious HTML/JavaScript targeting WebKit/JSC type confusion; includes PAC bypass and sandbox escape stages (as described)PoCCVE-2024-23222The repository contains one README and nine standalone JavaScript files: four vulnerability-triggering experiments under poc/ and five constant-folding/lifetime experiments under research/. It attributes CVE-2024-23222 to a TOCTOU error in DFG concurrent compilation's tryGetConstantProperty, where a weakly frozen JavaScript cell can be reclaimed by garbage collection while compilation still uses it. This attribution and crash behavior are not independently verified by the supplied material. The PoCs repeatedly read a sealed object's mutable val property to encourage JIT optimization, replace its object value with zero, and create allocation pressure or request full garbage collection. poc_det2.js adds recursive stack scrubbing; poc_det3.js additionally removes references to similarly shaped sibling objects and creates property churn; poc_det4.js repeats six attempts and allocates replacement objects to encourage heap reuse. race_v7.js performs 24 attempts across different mutation thresholds, using allocation storms to exercise the natural race. Printed 'no crash' and 'SURVIVED' messages merely indicate execution reached the end, not that the target is patched. The research scripts compare function shapes, closure and argument-based constant folding, explicit optimization, and reads after mutation and garbage collection. They are diagnostic experiments rather than exploitation payloads. The advertised instrumented-build modification is absent, limiting independent reproduction of the deterministic crash claim. All scripts target local jsc execution; browser delivery is a potential vector for the underlying engine vulnerability, but no browser harness or delivery page is included. There are no network calls, external payload downloads, filesystem operations, registry modifications, persistence, or exfiltration. The only URLs are documentation references in the README. No exploit framework is present. The original repository URL, analyzed repository ref, and archive size were not supplied; the listed file sizes total 8,845 bytes, which is not a verified archive size.jamezx32 · Disclosed Oct 14, 2026 · javascript · local · browserPoCcoruna-labThe repository consists entirely of two manually triggered GitHub Actions YAML workflows with embedded Bash. They automate a CVE-2024-23222 reproduction environment rather than containing a self-contained exploit implementation. The actual JavaScript PoCs are downloaded at runtime from califio/publications, so their memory-corruption mechanism and claimed write primitive cannot be independently verified from the supplied files. Both workflows build WebKit-7617.1.17.13.7 in Release mode, perform a source-file-based patch check, run a tryGetConstantProperty reachability probe, and repeatedly launch a read/write PoC in fresh processes. Automatic timing calibration tests 11 PIVOT values from 165000 through 195000 in increments of 3000, with 10 runs per value. The selected value is then retried up to 80 times on Linux or 60 times on macOS. Success is determined only by finding 'read64 OK' in stdout/stderr; write success is not separately checked. If every calibration run misses, BEST remains zero, and the subsequent shell default does not replace that zero with 178000, potentially causing final attempts with PIVOT=0. The ARM64 Linux workflow installs build dependencies, configures a JSCOnly CMake/Ninja build with FTL JIT enabled, builds only jsc, and dynamically locates the executable. It also optionally installs radare2, but contains no implant download or analysis implementation. The macOS workflow uses WebKit's build-jsc script, redirects the executable's framework dependency to the locally built JavaScriptCore, and ad-hoc signs the executable. Both retain the PoC hash and successful output; only macOS retains engine binaries. Despite comments describing full logs, the upload lists do not include a full log file. This is a local exploit-reproduction harness, not a remote browser exploit, scanner, or payload framework. No reverse shell, command-execution payload, persistence, credential theft, C2, or attacker-controlled exfiltration destination appears. Recursive deletion commands are contextual runner-space cleanup rather than evidence of a fake exploit, although they are unsafe on a non-disposable host. External PoC and optional radare2 sources are not commit-pinned, and the recorded PoC hash documents rather than authenticates the downloaded script. The original repository URL, analyzed reference, and archive size were not supplied; empty strings and zero represent unavailable metadata.xxsioo · Disclosed Nov 8, 2026 · yaml · bash · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AppleIpadosoperating_system
AppleIphone Osoperating_system
AppleMacosoperating_system
AppleSafariapplication
AppleTvosoperating_system
AppleVisionosoperating_system
FAQ

Frequently asked questions

Is CVE-2024-23222 exploited in the wild?
Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jan 23, 2024.
Is there a public exploit for CVE-2024-23222?
Yes. Mallory tracks 6 public exploits or proofs of concept for CVE-2024-23222, the earliest disclosed Mar 10, 2026.
Is there a patch for CVE-2024-23222?
Install the latest supported Apple security updates. Releases containing the fix include Safari 17.3; iOS and iPadOS 15.8.7, 16.7.5, and 17.3; macOS Monterey 12.7.3, Ventura 13.6.4, and Sonoma 14.3; tvOS 17.3; and visionOS 1.0.2.
What products are affected by CVE-2024-23222?
Apple Ipados, Apple Iphone Os, Apple Macos, Apple Safari, Apple Tvos, and 1 more.
How severe is CVE-2024-23222?
CVE-2024-23222 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 11.0% (96th percentile) as of Nov 19, 2026.
Activity feed

Recent activity

39 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+25 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence25Every report linking this CVE to a named adversary.
Associated malware32Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity8Community discussion across Reddit, Mastodon, and other social sources.