CVE DatabaseCVE-2021-30657
한국어 권고문 →
CVE-2021-306575.5/MEDIUMCISA KEVCWE-862

Apple macOS Gatekeeper Security Bypass and Malware Execution Vulnerability (CVE-2021-30657)

⚡ Jump to Patch
Affected Vendors
apple
Affected Components
macos, macos_big_sur, macos_catalina
Published Date
2021-09-08
CVSS v3.1
5.5
MEDIUM
EPSS (30d)
68.5%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

macOS Big Sur versions prior to 11.3, and macOS Catalina (without Security Update 2021-002)

Impact

A malicious, unsigned, and unnotarized application can completely bypass Gatekeeper, File Quarantine, and Notarization checks, leading to arbitrary code execution without user warnings

Mitigation

Immediately upgrade to macOS Big Sur 11.3 or later, or apply Security Update 2021-002 for macOS Catalina

Affected Products & Version Scope

macOS Big Sur prior to 11.3, and macOS Catalina prior to Security Update 2021-002

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The primary remediation is to upgrade macOS to a patched version (Big Sur 11.3 or later). Run the following commands in the terminal to check and apply updates:

bash
# List available software updates
softwareupdate -l

# Download and install all updates including macOS Big Sur 11.3+ or security updates
sudo softwareupdate -i -a --restart

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, enforce Gatekeeper policies and inspect downloaded files for quarantine attributes.

bash
# Verify if the quarantine attribute is present on downloaded files
xattr -l ~/Downloads/*

# Ensure Gatekeeper is globally enabled to restrict untrusted applications
sudo spctl --master-enable

3. Log Audit & IoC Verification Commands

Use the following commands to verify the current macOS version and manually assess application bundles for Gatekeeper compliance:

bash
# Check current macOS version details
sw_vers

# Manually assess an application bundle to verify if it passes Gatekeeper checks
# (An assessment failure or 'rejected' status indicates potential anomalies)
spctl --assess --verbose=4 /Applications/TargetApp.app
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
This vulnerability is actively exploited in the wild; immediately update all macOS endpoints to Big Sur 11.3 or apply the relevant security updates.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2021-30657) stems from a logic issue in the state management of macOS's Gatekeeper security framework. Normally, macOS assigns a quarantine flag (com.apple.quarantine) to files downloaded from the internet and subjects them to Gatekeeper and Notarization checks. However, a logic flaw existed where certain malformed application bundle structures (such as those missing the 'Info.plist' file) failed to trigger the quarantine verification process, allowing the execution engine to bypass security checks entirely.

2. Exploitation Mechanics & Attack Scenario

In active exploitation scenarios (such as those involving the Shlayer malware family), attackers crafted a double-clickable application bundle (.app) but intentionally omitted the standard 'Info.plist' metadata file. When a user executes this crafted bundle, the macOS LaunchServices and kernel treat it as a basic script or raw executable rather than a standard app bundle. Consequently, Gatekeeper fails to perform quarantine and notarization checks, executing the untrusted payload immediately without displaying any security warnings to the user.

3. Infrastructure & Business Impact

As this vulnerability is listed in the CISA KEV catalog, it represents a highly practical and actively exploited threat vector. In an enterprise environment, successful exploitation allows attackers to bypass endpoint protection controls, establish initial access, deploy secondary payloads, and potentially move laterally across the corporate network, posing a severe risk of data exfiltration and ransomware deployment.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-30657)

FAQ

Q1. How critical is CVE-2021-30657 and is it actively exploited in the wild?

CVE-2021-30657 is rated CVSS 5.5 (MEDIUM) with a 30-day EPSS exploitation probability of 68.5%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-30657?

Primary impacted vendors include apple across macos, macos_big_sur, macos_catalina. Scope summary: macOS Big Sur prior to 11.3, and macOS Catalina prior to Security Update 2021-002

Q3. What temporary mitigations or workarounds exist for CVE-2021-30657 before patching?

[Mitigation] Immediately upgrade to macOS Big Sur 11.3 or later, or apply Security Update 2021-002 for macOS Catalina Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-30657

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (apple)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-30657 Apple macOS Gatekeeper Security Bypass and Malware Execution Vulnerability (CVE-2021-30657) (CVSS 5.5) - Patch & Workaround | CVE Pulse