How to Fix CVE-2026-40604: Protection mechanism failure in clearancekit
By Sai Kiran Pandrala. Last verified: 2026-05-25.
| Severity | 8.2 (High) |
|---|---|
| Actively exploited? | No public listing in CISA KEV |
| Affected | craigjbass clearancekit < 5.0.6 |
| Fixed in | clearancekit 5.0.6 |
| Type (CWE) | CWE-693: CWE-693: Protection Mechanism Failure |
What is CVE-2026-40604?
ClearanceKit intercepts file-system access events on macOS and enforces per-process access policies. Prior to 5.0.6, the opfilter Endpoint Security system extension (bundle ID uk.craigbass.clearancekit.opfilter) can be suspended with SIGSTOP or kill -STOP, or killed with SIGKILL/SIGTERM, by any process running as root. While the extension is suspended, all AUTH Endpoint Security events time out and default to allow, silently disabling ClearanceKit's file-access policy enforcement for the duration of the suspension. This vulnerability is fixed in 5.0.6.
Am I affected?
Run the version check that matches your platform:
# macOS
sw_vers
brew list --versions clearancekit 2>/dev/null
Compare what you see against the Affected row above (craigjbass clearancekit < 5.0.6). If your build sits inside that range, you are exposed and should patch.
How to fix CVE-2026-40604
The primary fix is to upgrade clearancekit to the patched build. Use the commands for your platform below; the patched version listed in the vendor advisory is: clearancekit 5.0.6.
macOS
# System updates (Apple-issued patches)
softwareupdate --list
sudo softwareupdate --install --all --restart
# For third-party tools managed by Homebrew
brew update
brew upgrade
Complete macOS / iOS remediation script
#!/usr/bin/env bash
# CVE-2026-40604 fix script for clearancekit
# Run on each affected Mac. iOS / iPadOS / watchOS / tvOS devices update via Settings.
set -euo pipefail
LOG="$HOME/Library/Logs/cve-2026-40604-fix-$(date +%Y%m%d-%H%M%S).log"
exec > >(tee -a "$LOG") 2>&1
echo "[1/4] Current OS version"
sw_vers
echo "[2/4] Listing available Apple updates"
softwareupdate --list || true
echo "[3/4] Installing all pending Apple security updates"
sudo softwareupdate --install --all --restart
echo "[4/4] Verifying"
sw_vers
echo "For iPhone / iPad: Settings -> General -> Software Update."
echo "For Apple Watch: Watch app -> General -> Software Update."
echo "For Apple TV: Settings -> System -> Software Updates -> Update Software."
If you can't patch immediately
If you cannot apply the patched version today, restrict exposure with one of the following runnable controls. None replace the patch.
Service-level fallback
# If the affected feature is optional, stop the service until the patch is applied
sudo systemctl stop clearancekit
sudo systemctl disable clearancekit
How to verify the fix worked
# Linux
clearancekit --version 2>/dev/null || dpkg -s clearancekit | grep -i version
rpm -q clearancekit 2>/dev/null || true
# Windows
winget list | findstr /I "clearancekit"
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 5
Expected: the reported version is at or above clearancekit 5.0.6. Restart any services that loaded the old library (systemctl restart <service> on Linux, restart the Windows service or reboot when prompted). For network appliances, run show version on the device and confirm the build matches the patched release.
Frequently asked questions
Related fixes
Other vulnerabilities in the same area that are worth patching alongside this one:
- How to Fix CVE-2026-0578: SQL Injection in Online Product Reservation System — SQL Injection in Online Product Reservation System
- How to Fix CVE-2026-34950: CWE-327: Use of a Broken or Risky Cryptographic Algorithm in fast-jwt — CWE-327: Use of a Broken or Risky Cryptographic Algorithm in fast-jwt
- How to Fix CVE-2026-22506: Critical Vulnerability in Amoli , Critical Vulnerability in Amoli
- How to Fix CVE-2026-6332: Information Disclosure in Ecostruxure™ Machine Expert HVAC , Information Disclosure in Ecostruxure™ Machine Expert HVAC
- How to Fix CVE-2026-33186: gRPC-Go has an authorization bypass via missing leading slash in :path , gRPC-Go has an authorization bypass via missing leading slash in :path
Is CVE-2026-40604 actually being exploited?
According to the data sources above, no public confirmation of in-the-wild exploitation at this time. Either way, the fix is the same: apply the vendor patch.
Do I need to reboot after patching?
For OS or kernel updates, yes. For most userland packages a systemctl restart <service> is enough. Any process that loaded the old shared library keeps using it until restarted, so when in doubt, reboot.
What is the CVSS score?
8.2 (high). Refer to the vendor advisory for the exact vector string.
Where is the official advisory?
See the References section at the bottom of this page; the vendor's URL is the authoritative source for affected builds and patched versions.
References
- Official vendor advisory: https://github.com/craigjbass/clearancekit/security/advisories/GHSA-5r9w-9fg6-266q
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-40604
*Written by Sai Kiran Pandrala. Assembled from the official vendor advisory, NVD record, and CISA KEV listing on 2026-05-25. Always confirm against the vendor's advisory before applying changes in production.*