macOS vulnerabilities
4 real-world CVEs in macOS. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2023-32369medium 6.02023
Migraine: interpreter environment inherits SIP bypass
The SIP-exempt migration daemon starts Perl and Bash children with ambient launchd environment variables, allowing an attacker who already has root code execution to inject interpreter startup behavior into a child that inherits the daemon's filesystem bypass.
- CVE-2022-42821medium 5.52022
Achilles: AppleDouble ACL blocks quarantine assignment
A crafted AppleDouble companion restores a restrictive ACL onto an extracted application, preventing the com.apple.quarantine marker from being assigned and leaving Gatekeeper without the state that would trigger its checks.
- CVE-2021-30970medium 5.52021
powerdir: mutable home directory redirects the TCC database
The macOS privacy daemon derives a user's TCC database path from the Directory Services home-directory record, allowing a local attacker to redirect that trusted lookup to a prepared database under an attacker-controlled home.
- CVE-2021-30892medium 5.52021
Shrootless: inherited SIP entitlement through zsh startup
The privileged macOS installer launches zsh for signed-package scripts with a heritable SIP-bypass entitlement, while zsh automatically executes the globally writable-at-root /etc/zshenv startup file.