Local Privilege Escalation in Apple OS X rsh remote_cmds via Environment Variables
CVE-2015-5889 is a local privilege escalation vulnerability in the rsh program within the remote_cmds component of Apple OS X 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 on OS X 10.9.5 and 10.10.5. In practice, a local attacker can invoke the vulnerable setuid-root rsh binary in a way that causes unsafe handling of attacker-controlled environment state, resulting in execution with elevated privileges and escalation to root.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No valid public exploits. Mallory filtered out 1 candidate as fakes, detection scripts, or README-only repos.
All candidate exploits were filtered out by Mallory's validation.
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.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A local privilege escalation vulnerability in macOS (OS X) that allows a local attacker to gain root privileges by exploiting the interaction between issetugid(), rsh, and libmalloc. Used by FinSpy macOS malware to escalate privileges.
A macOS privilege escalation vulnerability used by the FinSpy for Mac OS infection chain to obtain root access during installation.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.