MODULE

Remote for Mac Unauthenticated RCE

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

Remote for Mac Unauthenticated RCE

Disclosed
05/27/2025
Created
06/08/2025

Description

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.

Author(s)

  • Chokri Hammedi ( <Chokri Hammedi (@blue0x1)>

Platform

OSX,Unix

Architectures

cmd

Development

Module Options

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

;