CVE-2021-1864: Use-after-free in Apple SUScriptObject WebScripting bridge
- Vendor
- Apple
CVE-2021-1864 is a use-after-free vulnerability in Apple’s StoreKit/iTunes WebView scripting environment affecting iOS-derived platforms prior to the fixes in iOS 14.5, iPadOS 14.5, watchOS 7.4, and tvOS 14.5. The issue stems from unsafe exposure of Objective-C methods to JavaScript through the obsolete WebScripting bridge used by SUScriptInterface and SUScriptObject-derived classes. Because selector exposure was overly permissive, JavaScript running in the affected context could invoke lifecycle methods such as dealloc on bridge-exposed objects, freeing an object while retaining a live reference to it. Subsequent use of that dangling reference enabled attacker-controlled memory corruption. The vulnerability was described as reachable by an attacker who already had JavaScript execution in the affected application context, and was used to obtain memory primitives, arbitrary invocation, and ultimately arbitrary code execution. The issue was addressed through improved memory management.
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 can lead to arbitrary code execution in the context of the affected Apple application process. The vulnerability can provide powerful exploitation primitives including use-after-free dereference, heap manipulation, address disclosure, and arbitrary invocation. In demonstrated chaining, it was used to bypass modern platform hardening mechanisms including PAC and APRR and to load arbitrary shellcode within the iTunes Store application context.
Mitigation
If you can’t patch tonight, do this now.
Until patched, reduce exposure to attacker-controlled JavaScript reaching the affected StoreKit/iTunes WebView context. Limit delivery paths that can open untrusted content in privileged Apple application WebViews, and restrict use of untrusted links or content that could trigger script execution in those contexts. General hardening should focus on preventing the prerequisite JavaScript execution needed to reach the vulnerable bridge.
Remediation
Patch, then assume compromise.
Apply the vendor fixes in iOS 14.5, iPadOS 14.5, watchOS 7.4, tvOS 14.5, or later platform releases that incorporate the memory-management correction for CVE-2021-1864. Where applicable, update all affected devices and embedded Apple platform components to versions containing the fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
Frequently asked questions
- Is CVE-2021-1864 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2021-1864 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-1864?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-1864.
- Is there a patch for CVE-2021-1864?
- Apply the vendor fixes in iOS 14.5, iPadOS 14.5, watchOS 7.4, tvOS 14.5, or later platform releases that incorporate the memory-management correction for CVE-2021-1864. Where applicable, update all affected devices and embedded Apple platform components to versions containing the fix.
- What products are affected by CVE-2021-1864?
- Apple Ipados, Apple Tvos, Apple Watchos, and Apple Iphone Os.
- How severe is CVE-2021-1864?
- CVE-2021-1864 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 2.2% (83rd percentile) as of Oct 16, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.