rsh in the remote_cmds component in Apple OS X before 10.11 allows local users to obtain root privileges via vectors involving environment variables.
https://www.exploit-db.com/exploits/38540/
https://www.exploit-db.com/exploits/38371/
https://support.apple.com/HT205267
http://www.securitytracker.com/id/1033703
http://www.securityfocus.com/bid/76908
http://seclists.org/fulldisclosure/2015/Oct/5
http://packetstormsecurity.com/files/133826/issetugid-rsh-libmalloc-OS-X-Local-Root.html
http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html