Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighCISA KEVExploited in the wildPublic exploit

WebKit JavaScriptCore type confusion in for...in property enumeration

IdentifiersCVE-2021-1789CWE-843· Access of Resource Using…

CVE-2021-1789 is a WebKit/JavaScriptCore remote code execution vulnerability affecting Safari and Apple platforms prior to the fixes in macOS Big Sur 11.2, Security Update 2021-001 Catalina, Security Update 2021-001 Mojave, tvOS 14.4, watchOS 7.3, iOS 14.4, iPadOS 14.4, and Safari 14.0.3. Apple described the issue as a type confusion addressed with improved state handling, and noted it may have been actively exploited in the wild. Public technical analysis ties the bug to JavaScriptCore handling of for...in enumeration via JSPropertyNameEnumerator. During enumeration, JavaScriptCore caches structure and property metadata from the base object, then walks the prototype chain. If that traversal passes through a Proxy object, a getPrototypeOf trap can mutate the enumerated object state. The implementation reportedly failed to validate the final structure/property state after those mutations, leaving stale cached structure information used by the JIT fast path for property access. This can produce out-of-bounds reads and, with heap manipulation, be transformed into a more powerful memory-corruption primitive enabling arbitrary code execution from malicious web content.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation allows remote arbitrary code execution in the context of the targeted application processing attacker-controlled web content, such as Safari/WebKit. In observed exploit chains, the bug was used as the initial browser compromise to achieve in-memory native macOS code execution, and then chained with a local privilege-escalation vulnerability to obtain root. Apple stated the issue may have been exploited in the wild.

Mitigation

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

Until patching is complete, reduce exposure to untrusted web content in Safari and other affected WebKit-based applications, especially for high-risk users. Restrict browsing to trusted sites, disable or limit JavaScript where operationally feasible, and use platform/browser hardening and application control to reduce post-exploitation impact. Monitor for suspicious Safari/WebKit crashes and signs of exploit chaining with local privilege-escalation vulnerabilities. These are only partial mitigations and do not eliminate the underlying flaw.

Remediation

Patch, then assume compromise.

Apply the vendor fixes: macOS Big Sur 11.2, Security Update 2021-001 Catalina, Security Update 2021-001 Mojave, tvOS 14.4, watchOS 7.3, iOS 14.4, iPadOS 14.4, and Safari 14.0.3 or later. Where applicable, update WebKit-based downstream builds to versions incorporating the corresponding WebKit fix. Prioritize patching internet-exposed and high-risk user systems because the vulnerability was reported as potentially exploited in the wild.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

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
AppleMac Os Xoperating_system
AppleMacosoperating_system
AppleTvosoperating_system
AppleWatchosoperating_system
Fedora ProjectFedoraoperating_system
WebkitgtkWebkitgtkapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

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

What this page doesn’t show

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, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware3

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.