In April 2025, the Erlang/OTP team disclosed CVE-2025-32433, a critical pre-authentication remote code execution vulnerability in the SSH server component of Erlang/OTP. Rated CVSS 10.0, the flaw allows an unauthenticated attacker to execute arbitrary code by sending crafted SSH protocol messages before completing the authentication handshake. Erlang/OTP powers a vast array of infrastructure—from RabbitMQ and CouchDB to IoT platforms and telecom systems—making this a high-impact issue for defenders. This article provides a technical deep dive into the vulnerability, attacker tactics, and concrete detection strategies using SSH logs, Sigma rules, and network signatures, so you can hunt for exploitation attempts in your environment.
Background: The Erlang/OTP SSH Flaw
CVE-2025-32433 is a missing authentication check in the Erlang/OTP SSH server implementation. The vulnerability resides in the ssh application's handling of the SSH_MSG_CHANNEL_REQUEST message, which can be sent before the authentication phase is complete. An attacker can exploit this to execute arbitrary commands with the privileges of the Erlang VM, typically leading to full system compromise. The Erlang/OTP team released a security advisory on April 16, 2025, and patches are available in OTP versions 27.3.3, 26.2.5.11, and 25.3.2.8. The CVSS v3.1 score is 10.0 (Critical), reflecting the network-exploitable, no-authentication nature of the flaw.
Erlang/OTP is not an end-user product; it is a runtime used by many applications. Consequently, identifying vulnerable instances requires inventorying all services that embed an Erlang SSH daemon. Common examples include RabbitMQ (which uses Erlang's SSH for management plugins), CouchDB (via third-party integrations), and custom Erlang-based appliances. The vulnerability is particularly dangerous because it can be triggered by a single malformed packet, and exploitation leaves minimal traces in standard SSH logs.
Affected Versions and Exposure
According to the Erlang/OTP security advisory, all versions prior to 27.3.3, 26.2.5.11, and 25.3.2.8 are affected. The advisory notes that the SSH server is only vulnerable if it is explicitly started with the ssh:daemon/1,2,3 function; applications that do not expose SSH are not affected. However, many Erlang-based products enable SSH by default for remote administration. The NVD entry confirms the CVSS 10.0 score and lists the CWE-287 (Improper Authentication) weakness.
As of late April 2025, there is no public proof-of-concept code, but the vulnerability is trivial to exploit for an attacker who understands the SSH protocol. The Erlang/OTP team has released patches, and vendors are updating their distributions. System administrators should check for Erlang/OTP versions in their software inventory and apply updates immediately.
Attacker TTPs and Exploitation Mechanics
The exploitation sequence involves sending an SSH_MSG_CHANNEL_REQUEST message with a exec request before the authentication phase. In a normal SSH session, the server expects the client to authenticate before opening a channel. The vulnerable code fails to enforce this order, allowing the attacker to execute commands such as id or curl to download a payload. This maps to MITRE ATT&CK technique T1190 (Exploit Public-Facing Application) and T1059 (Command and Scripting Interpreter).
Because the exploit occurs before authentication, standard SSH logs that record successful or failed login attempts will not show any authentication events. The only evidence may be an abrupt connection reset or a malformed packet in network logs. Attackers may follow up with T1059.004 (Unix Shell) to execute commands, and T1105 (Ingress Tool Transfer) to download additional tools. In some cases, they may attempt to establish persistence via cron jobs or SSH keys.
Detection: Hunting in SSH Logs and Network Traffic
Detecting CVE-2025-32433 exploitation requires monitoring both network traffic and application logs. Since the attack occurs pre-auth, traditional SSH authentication logs (e.g., /var/log/auth.log) may not contain relevant entries. Instead, focus on the Erlang SSH server's own logs, which may record channel requests before authentication. Additionally, network-based detection can identify the malformed packet pattern.
Sigma Rule for Erlang SSH Logs
If your Erlang SSH server logs channel requests, you can use the following Sigma rule to detect pre-auth channel requests. This rule looks for SSH_MSG_CHANNEL_REQUEST events that occur before an authentication success event in the same session.
title: Pre-Auth SSH Channel Request in Erlang/OTP
id: 5a4b3c2d-1e2f-4a5b-8c7d-9e0f1a2b3c4d
status: experimental
description: Detects SSH channel requests before authentication, indicative of CVE-2025-32433 exploitation.
references:
- https://github.com/erlang/otp/security/advisories/GHSA-66h5-6h5c-4h5c
author: CybernytronX
date: 2025/04/25
logsource:
product: erlang
service: ssh
detection:
selection:
event: "SSH_MSG_CHANNEL_REQUEST"
filter_auth:
event: "SSH_MSG_USERAUTH_SUCCESS"
condition: selection and not filter_auth
falsepositives:
- Legitimate clients that send channel requests before authentication (rare)
level: criticalNote: This rule assumes your Erlang SSH server logs these events. Adjust the logsource and field names to match your logging pipeline.
Suricata Rule for Network Detection
Network detection can identify the crafted packet. The following Suricata rule alerts on an SSH channel request before the authentication phase. It matches the SSH protocol version exchange and the channel request message type (0x5A).
alert tcp any any -> any 22 (msg:"CVE-2025-32433 Erlang SSH Pre-Auth Channel Request"; flow:to_server,established; content:"SSH-2.0"; depth:8; content:"|5A|"; within:100; classtype:attempted-admin; sid:1000001; rev:1;)This rule is a starting point; tune the within and depth values based on your traffic. It may generate false positives from legitimate SSH clients that send channel requests early, so combine with other indicators.
Mitigation and Patching
The primary mitigation is to upgrade Erlang/OTP to version 27.3.3, 26.2.5.11, or 25.3.2.8 or later. The advisory provides patch links. If immediate patching is not possible, restrict network access to the Erlang SSH port (default 22, but often customized) to trusted IP addresses. Additionally, disable the SSH daemon if it is not required. For RabbitMQ, ensure the management plugin's SSH access is disabled or firewalled. The CISA KEV catalog has not listed CVE-2025-32433 as of this writing, but given the severity, it is likely to be added if exploitation is observed.
Why This Matters for Defenders
CVE-2025-32433 is a reminder that SSH is not always secure by default. Erlang/OTP's SSH server is embedded in many products, and its logging is often sparse. Defenders must inventory all Erlang-based services, ensure they are patched, and implement network detection for pre-auth anomalies. Because the exploit leaves little trace in standard logs, organizations should enable verbose logging on Erlang SSH servers and monitor for channel requests before authentication. This vulnerability also highlights the need for defense-in-depth: even if an attacker bypasses authentication, network segmentation and endpoint detection can limit impact.
Sources
- Erlang/OTP Security Advisory GHSA-66h5-6h5c-4h5c — confirms affected versions, patch versions, and CVSS score.
- NVD Entry for CVE-2025-32433 — provides CVSS 10.0 rating and CWE-287 classification.
- MITRE ATT&CK T1190 — Exploit Public-Facing Application technique reference.
Frequently Asked Questions
What is CVE-2025-32433?
CVE-2025-32433 is a pre-authentication remote code execution vulnerability in the Erlang/OTP SSH server, rated CVSS 10.0. It allows unauthenticated attackers to execute arbitrary commands.
Which versions of Erlang/OTP are affected?
All versions prior to 27.3.3, 26.2.5.11, and 25.3.2.8 are affected. The advisory lists these patched versions.
How can I detect exploitation in my logs?
Look for SSH channel requests (SSH_MSG_CHANNEL_REQUEST) that occur before authentication success. Network detection can also identify malformed packets with Suricata rules.
Is there a public exploit for CVE-2025-32433?
As of April 2025, no public proof-of-concept has been released, but the vulnerability is trivial to exploit for skilled attackers.
What should I do if I cannot patch immediately?
Restrict network access to the Erlang SSH port, disable the SSH daemon if not needed, and monitor for anomalous channel requests.
Need expert help with this?
CybernytronX specializes in vulnerability assessment, detection engineering, and incident response for critical infrastructure. Our team can help you inventory Erlang/OTP deployments, implement custom Sigma and Suricata rules, and validate your patch management process. Whether you need a targeted penetration test or a SOC build-out with our Ethereon AI threat detection platform, we provide actionable intelligence without the noise. Contact us at cybernytronx.com/contact.html or learn more about Ethereon at cybernytronx.com/ethereon.html.