This module exploits an unauthenticated remote code execution vulnerability in Remote for Mac versions up to and including 2025.7 via the /api/executeScript endpoint. When authentication is disabled on the target system, it allows attackers to execute arbitrary AppleScript commands, which can include shell commands via `do shell script`. All versions up to 2025.7 (including patch versions) are vulnerable.
OSX,Unix
cmd
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/osx/http/remote_for_mac_rce
msf exploit(remote_for_mac_rce) > show targets
...targets...
msf exploit(remote_for_mac_rce) > set TARGET < target-id >
msf exploit(remote_for_mac_rce) > show options
...show and set options...
msf exploit(remote_for_mac_rce) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security