Rapid7

module

Remote for Mac 2025.6 Unauthenticated UDP Keyboard RCE

Disclosed
May 27, 2025
Created
Aug 28, 2025

Description

This module exploits an unauthenticated remote code execution vulnerability in Remote for Mac 2025.6.
When the "Allow unknown devices" setting is enabled, it is possible to simulate keyboard input via UDP packets
without authentication. By sending a sequence of key presses, an attacker can open the Terminal and execute
arbitrary shell commands, achieving code execution as the current user.

Author

Chokri Hammedi

Platform

Unix

Architectures

cmd

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/misc/remote_for_mac_udp_rce
msf exploit(remote_for_mac_udp_rce) > show targets
...targets...
msf exploit(remote_for_mac_udp_rce) > set TARGET < target-id >
msf exploit(remote_for_mac_udp_rce) > show options
...show and set options...
msf exploit(remote_for_mac_udp_rce) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.