githubEdit

Erlang OTP SSH

Pre-authentication RCE in Erlang/OTP SSH daemon.

Affects: Erlang/OTP versions with SSH daemon


Discovery

# Banner grab
nc TARGET 2222
# Response: SSH-2.0-Erlang/5.2.9

# Via nmap
nmap -sV -p 2222 TARGET

Indicators:

  • SSH banner contains Erlang

  • Often runs on non-standard ports (2222, etc.)

  • May only listen on localhost (requires port forward)


CVE-2025-32433 - Pre-Auth RCE

Vulnerability: Pre-authentication command execution via malformed SSH channel request.

Exploit

Custom Payload

Modify the exploit to execute arbitrary commands:

Manual Erlang Commands


Finding Erlang SSH Services


Configuration Files

Erlang SSH daemons may have credentials in config:

Common locations:


References

  • https://medium.com/@RosanaFS/erlang-otp-ssh-cve-2025-32433-tryhackme-e410df5f1b53

  • https://github.com/platsecurity/CVE-2025-32433

Last updated