Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2015-5889: Local Privilege Escalation in Apple OS X rsh remote_cmds via Environment Variables

Published Oct 9, 2015 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.2High · v2
EPSS5.1%93rd percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Apple
IdentifiersCVE-2015-5889CWE-269

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Exposure surface

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.

VendorProductType
AppleMac Os Xoperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.