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.
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.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository contains a single Metasploit module (modules/exploits/osx/local/rsh_libmalloc.rb) that exploits a local privilege escalation vulnerability (CVE-2015-5889) in Mac OS X 10.9.5 and 10.10.5. The exploit abuses the rsh utility and the way malloc log files are handled to write to /etc/crontab, which is then used to append a passwordless sudo rule to /etc/sudoers. This allows the attacker to gain root privileges even if the root account is disabled. The module supports both x64 and Python payloads, which are executed as root after successful exploitation. The exploit requires a writable directory (default: /.Trashes) and a session on a vulnerable system. The code includes cleanup routines to restore the original crontab file. The main attack vector is local privilege escalation, and the primary fingerprintable endpoints are the system files /etc/sudoers, /etc/crontab, and /usr/bin/rsh.
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.
3 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.
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.