Zum Hauptinhalt springen
LIVE Intel Feed
"Not a Pentest" Notice: Remediation guide for your own infrastructure only.
Academy · CVE FeedCRITICAL · CVSS 10.0 · UNAUTHENTICATED RCE

CVE-2025-32433

Erlang/OTP SSH — Unauthenticated Remote Code Execution (CVSS 10.0)

Impact: Pre-authentication remote code execution in Erlang/OTP's built-in SSH daemon. No credentials required. An attacker with network access to the SSH port can execute arbitrary OS commands. Affects RabbitMQ, CouchDB, Riak, and any Elixir/Erlang application using the built-in SSH server. Patch: OTP-27.3.3 / OTP-26.2.5.11 / OTP-25.3.2.19.

10.0
CVSS Score
CRITICAL
Severity
Unauth.
Auth required
27.3.3
Fixed OTP

Step-by-Step Fix Runbook

1
Identify all Erlang/OTP installations and check version
# Check Erlang/OTP version — any method:
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
# Or:
erl --version
# Or check package manager:
# Debian/Ubuntu:
dpkg -l erlang* | grep -E "^ii"
apt show erlang | grep Version

# RHEL/CentOS/Rocky:
rpm -qa | grep erlang
dnf info erlang

# Alpine Linux:
apk info erlang

# macOS:
brew info erlang

# Vulnerable versions (ALL before these patched releases):
# OTP-27: vulnerable before 27.3.3
# OTP-26: vulnerable before 26.2.5.11
# OTP-25: vulnerable before 25.3.2.19
# All OTP-24 and earlier: NO PATCH — upgrade to OTP-25/26/27

# Find all erl binaries on the system:
find /usr /opt /home -name "erl" -type f 2>/dev/null
2
Check if Erlang SSH daemon is running and exposed
# Check if Erlang SSH daemon (ssh_daemon) is listening:
ss -tlnp | grep -E "(:22|:2222|:4369)"
# Erlang typically uses port 4369 (epmd) and custom SSH ports

# Check for running Erlang SSH applications:
ps aux | grep -E "beam|erl" | grep -v grep

# Check epmd (Erlang Port Mapper Daemon) — indicator of Erlang deployment:
epmd -names 2>/dev/null
# Or:
ss -tlnp | grep :4369

# Check if :ssh application is loaded in running Erlang nodes:
# Connect to Erlang node (if accessible):
erl -name admin@localhost -setcookie YOUR_COOKIE
# In Erlang shell:
# application:which_applications().
# Look for: {ssh, "SSH-2.0 Erlang/OTP", "X.Y.Z"}

# Common Erlang applications using built-in SSH daemon:
# - RabbitMQ (management + clustering)
# - Riak
# - CouchDB
# - Custom Erlang/Elixir applications
# - Phoenix LiveView applications with SSH console
3
Apply patched Erlang/OTP version immediately
# PRIORITY: upgrade to patched version BEFORE any other mitigation

# Ubuntu/Debian — install from Erlang Solutions repo (latest patches):
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
dpkg -i erlang-solutions_2.0_all.deb
apt-get update
apt-get install -y erlang=1:27.3.3-1   # OTP-27 patched
# Or:
apt-get install -y erlang=1:26.2.5.11-1  # OTP-26 patched

# RHEL/Rocky/Alma:
dnf install erlang-27.3.3  # From EPEL or Erlang Solutions repo

# From source (if package not available yet):
wget https://github.com/erlang/otp/releases/download/OTP-27.3.3/otp_src_27.3.3.tar.gz
tar xzf otp_src_27.3.3.tar.gz
cd otp_src_27.3.3
./configure --without-javac
make -j$(nproc)
make install

# Docker: update base image
# FROM erlang:27.3.3  (official Erlang Docker image — check for patched tag)
# Or: FROM elixir:1.18.3  (includes patched OTP-27)

# Verify patched version:
erl -eval 'io:format("~s~n",[erlang:system_info(otp_release)]), halt().' -noshell
4
Immediate workaround: firewall SSH port if patch cannot be applied immediately
# If patching is not immediately possible, restrict SSH daemon access at firewall level

# Linux iptables — block inbound Erlang SSH from all but trusted IPs:
# First: identify the SSH port your Erlang app uses (not necessarily 22)
# Check application config or ss -tlnp output from step 1

# Block Erlang SSH port (example: port 22) from all except admin subnet:
iptables -I INPUT -p tcp --dport 22 -s 10.0.0.0/8 -j ACCEPT    # Allow internal
iptables -I INPUT -p tcp --dport 22 -s 192.168.0.0/16 -j ACCEPT # Allow internal
iptables -A INPUT -p tcp --dport 22 -j DROP                      # Block all else

# nftables equivalent:
nft add rule inet filter input tcp dport 22 ip saddr 10.0.0.0/8 accept
nft add rule inet filter input tcp dport 22 drop

# For cloud environments — restrict Security Group / Firewall rule:
# AWS: EC2 Security Group — remove 0.0.0.0/0 from SSH inbound rule
aws ec2 revoke-security-group-ingress --group-id sg-xxx \
  --protocol tcp --port 22 --cidr 0.0.0.0/0

# EPMD firewall (port 4369) — also restrict:
iptables -A INPUT -p tcp --dport 4369 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 4369 -j DROP
5
Detect exploitation attempts in logs
# Check SSH auth logs for unauthenticated connection patterns:
grep -E "(ssh|beam)" /var/log/auth.log | grep -v "Invalid user" |
  grep "Connection" | tail -50

# Check for Erlang crash dumps (may indicate exploitation attempt):
find / -name "erl_crash.dump" -newer /tmp -mtime -7 2>/dev/null

# Check for unexpected processes spawned by beam.smp:
# Sysmon (if installed):
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Sysmon/Operational'; Id=1} |
  Where-Object {$_.Message -match "beam"} | Select-Object TimeCreated, Message

# Linux: check for processes with beam.smp as parent:
ps auxf | grep -A5 "beam.smp"

# Network IOCs: scan for unexpected outbound connections from Erlang processes:
ss -tlnp -p | grep beam
# Any connection to unexpected external IPs from beam process = investigate

# Log Erlang SSH daemon connections (add to Erlang app config):
# {ssh, [{system_dir, "/etc/ssh"}, {auth_methods, "publickey,keyboard-interactive"},
#         {ssh_cli, {ssh_channel, []}}]}

Frequently Asked Questions

What makes CVE-2025-32433 a CVSS 10.0 critical vulnerability?

CVE-2025-32433 receives the maximum CVSS score of 10.0 because: Attack Vector: Network — exploitable remotely over the internet. Attack Complexity: Low — no special conditions required. Privileges Required: None — unauthenticated, no credentials needed. User Interaction: None — fully automated exploitation, no victim action required. Scope: Changed — compromise of the SSH daemon leads to OS-level access. Impact: Complete — Confidentiality/Integrity/Availability all rated High. The vulnerability allows unauthenticated code execution on any system running the Erlang/OTP SSH daemon, accessible from the network. The combination of remote, unauthenticated, no-interaction RCE is the definition of a maximum severity vulnerability.

Which applications are affected by CVE-2025-32433?

Any application using Erlang/OTP's built-in SSH daemon (:ssh application). Directly affected: RabbitMQ (when SSH plugin enabled), Riak KV, Apache CouchDB, custom Erlang and Elixir applications that start an SSH server for management/console access, Phoenix LiveView applications with SSH IEx console. Not directly affected: applications that use Erlang/OTP but don't start an SSH daemon (most web applications using Phoenix without SSH console). Check your exposure: run the detection commands in Step 2 to identify if SSH is active. The Erlang SSH daemon is distinct from the OS SSH daemon (OpenSSH) — OpenSSH is not affected by this CVE.

Is there a workaround if I cannot immediately patch?

Yes — network-level restriction: firewall all inbound connections to the Erlang SSH daemon port from untrusted networks. This is effective as a temporary measure because the vulnerability requires network access to the SSH port. However: 1) Apply the patch as soon as possible — this is a CVSS 10.0 vulnerability. 2) Identify the exact port(s) your Erlang SSH daemon listens on (may not be port 22). 3) If the port must remain accessible, consider allowlisting specific IP ranges only. 4) Monitor for exploitation attempts even with firewall in place. Note: completely disabling the Erlang SSH daemon is also an option if it's not required for application functionality — check your application's configuration.

How do I know if my Elixir/Phoenix application is affected?

Phoenix applications are affected only if they explicitly start an SSH daemon. Common patterns that indicate exposure: 1) Your mix.exs or application supervisor starts :ssh application. 2) You have IEx remote shell configured via SSH (common in production debugging setups). 3) Your rel/config/runtime.exs or config/prod.exs includes SSH configuration. 4) You use libraries like SSHKit or ExSSH that start SSH servers. Check: grep -r 'ssh_daemon\|:ssh\|SSHKit' lib/ config/ — if this returns results, investigate further. Most standard Phoenix web applications do NOT use the Erlang SSH daemon and are not directly affected. The OTP upgrade is still recommended for completeness.

Further Resources

🔒 Quantum-Resistant Mycelium Architecture
🛡️ Kuratierte Runbooks – EU-gehostet in Frankfurt
🌐 Zero Known Breaches – Powered by Living Intelligence
🏛️ DSGVO Art. 25 & 32 • SOC 2 & ISO 27001 in Vorbereitung
⚡ Real-Time Global Mycelium Network – 347 Bedrohungen in 60 Minuten
🧬 Trusted by SecOps Leaders worldwide