Skip to main content
Mallory
CriticalVulnerability

CVE-2021-1864: Use-after-free in Apple SUScriptObject WebScripting bridge

Published Sep 8, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS2.2%83rd percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Apple
IdentifiersCVE-2021-1864CWE-416 · Use After Free

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.

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 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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
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
AppleTvosoperating_system
AppleWatchosoperating_system
FAQ

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.
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 evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.