CVE-2021-30657: macOS Gatekeeper Bypass in syspolicyd
- Vendor
- Apple
CVE-2021-30657 is a macOS Gatekeeper bypass vulnerability caused by a logic flaw in Apple’s user-mode system policy daemon, syspolicyd. Apple described the issue as a logic issue addressed through improved state management. On vulnerable versions of macOS, a malicious application can be crafted so that Gatekeeper does not properly enforce its normal verification and execution checks, allowing untrusted code to run without the expected security prompt or blocking behavior. Public analysis indicates the flaw could be abused using payloads such as shell or Python scripts disguised with an application-style extension and delivered in a disk image, leading the operating system to execute the payload without proper Gatekeeper intervention. Apple fixed the issue in macOS Big Sur 11.3 and Security Update 2021-002 for Catalina, and reported awareness of active exploitation in the wild.
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 allows an attacker to bypass Gatekeeper protections intended to prevent execution of untrusted or insufficiently validated applications. This can enable initial code execution on a target Mac outside the normal trust and notarization workflow, including non-sandboxed execution paths depending on the delivered payload. In practical terms, the vulnerability can be used to launch malicious code that would otherwise be blocked or subjected to stronger user-facing security controls, facilitating malware delivery and follow-on actions such as credential theft, persistence, or broader compromise in the context of the logged-in user.
Mitigation
If you can’t patch tonight, do this now.
Until patching is complete, reduce exposure by restricting execution of untrusted applications and disk images, limiting user ability to open software obtained from untrusted sources, and monitoring for suspicious interpreter execution patterns associated with application-style filenames. Additional defensive measures include application allowlisting, endpoint controls that enforce notarization or trusted-developer policies beyond native Gatekeeper behavior, and detection of script interpreters launched in anomalous application execution chains. User awareness measures that discourage opening unexpected downloaded application bundles or disk images also reduce exploitability.
Remediation
Patch, then assume compromise.
Apply Apple’s security updates that address CVE-2021-30657. The issue is fixed in macOS Big Sur 11.3 and Security Update 2021-002 for macOS Catalina. Systems running affected unpatched releases should be upgraded to a version containing Apple’s improved state-management fix in syspolicyd.
Exploits
2 exploits validated by Mallory's analysis.
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.
References
Frequently asked questions
- Is CVE-2021-30657 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2021-30657?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2021-30657, the earliest disclosed Mar 25, 2021.
- Is there a patch for CVE-2021-30657?
- Apply Apple’s security updates that address CVE-2021-30657. The issue is fixed in macOS Big Sur 11.3 and Security Update 2021-002 for macOS Catalina.
- What products are affected by CVE-2021-30657?
- Apple Macos and Apple Mac Os X.
- How severe is CVE-2021-30657?
- CVE-2021-30657 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 68.5% (99th percentile) as of Oct 16, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.