MODULE

Erlang OTP Pre-Auth RCE Scanner and Exploit

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

Erlang OTP Pre-Auth RCE Scanner and Exploit

Disclosed
04/16/2025
Created
05/02/2025

Description

This module detect and exploits CVE-2025-32433, a pre-authentication vulnerability in Erlang-based SSH servers that allows remote command execution. By sending crafted SSH packets, it executes a payload to establish a reverse shell on the target system. The exploit leverages a flaw in the SSH protocol handling to execute commands via the Erlang `os:cmd` function without requiring authentication.

Author(s)

  • Horizon3 Attack Team
  • Matt Keeley
  • Martin Kristiansen
  • mekhalleh (RAMELLA Sebastien)

Platform

Linux,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/linux/ssh/ssh_erlangotp_rce
msf exploit(ssh_erlangotp_rce) > show targets
    ...targets...
msf exploit(ssh_erlangotp_rce) > set TARGET < target-id >
msf exploit(ssh_erlangotp_rce) > show options
    ...show and set options...
msf exploit(ssh_erlangotp_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

;