CVE-2015-5889: Local Privilege Escalation in Apple OS X rsh remote_cmds via Environment Variables
- Vendor
- Apple
CVE-2015-5889 is a local privilege escalation vulnerability in the rsh program within Apple OS X's remote_cmds component affecting OS X versions before 10.11. The issue allows a local user to obtain root privileges through crafted use of environment variables. Public exploit material referenced in the provided content describes the bug as involving issetugid(), rsh, and libmalloc, indicating the flaw can be triggered in the context of privileged execution of rsh with attacker-controlled environment state. The vulnerability was used by FinSpy macOS malware as one of several public privilege-escalation options to gain root during installation on older macOS systems.
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 a local, unprivileged user to escalate privileges to root on vulnerable OS X systems. This enables full compromise of the host, including installation of persistent system-level malware, modification of protected files and directories, loading or attempting to load privileged components, disabling or bypassing user-space protections, and access to sensitive data and system functionality otherwise restricted to root.
Mitigation
If you can’t patch tonight, do this now.
Until patching is completed, reduce exposure by restricting local code execution for untrusted users, monitoring for unexpected invocation of rsh and abnormal environment-variable usage in privileged contexts, and removing or disabling unnecessary legacy remote_cmds functionality where operationally feasible. Additional hardening measures include application whitelisting, least-privilege enforcement, and detection of post-exploitation artifacts associated with known malware leveraging this CVE.
Remediation
Patch, then assume compromise.
Upgrade affected Apple OS X systems to OS X 10.11 or later, as the vulnerability affects versions before 10.11. Remove or replace vulnerable remote_cmds/rsh components by applying Apple's security updates. In enterprise environments, prioritize patching legacy 10.9.x and 10.10.x systems that may still expose this local escalation path.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
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-2015-5889 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2015-5889?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2015-5889, the earliest disclosed Oct 1, 2015.
- Is there a patch for CVE-2015-5889?
- Upgrade affected Apple OS X systems to OS X 10.11 or later, as the vulnerability affects versions before 10.11. Remove or replace vulnerable remote_cmds/rsh components by applying Apple's security updates.
- What products are affected by CVE-2015-5889?
- Apple Mac Os X.
- How severe is CVE-2015-5889?
- CVE-2015-5889 has a CVSS v2 score of 7.2 (High) and an EPSS score of 5.1% (93rd percentile) as of Oct 16, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.