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.
- Product
- macOS system_installd
- Vendor
- Apple
- Affected
- macOS releases before Monterey 12.0.1, Big Sur 11.6.1, and Security Update 2021-007 Catalina
- Fixed in
- macOS Monterey 12.0.1, macOS Big Sur 11.6.1, and Security Update 2021-007 Catalina
- Weakness
- CWE-732
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Published
- 24 Aug 2021
Classified as
References
Related CVEs
- 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.