Skip to main content

CVE-2025-46712: CWE-440: Expected Behavior Violation in erlang otp

Low
VulnerabilityCVE-2025-46712cvecve-2025-46712cwe-440
Published: Thu May 08 2025 (05/08/2025, 19:26:27 UTC)
Source: CVE
Vendor/Project: erlang
Product: otp

Description

Erlang/OTP is a set of libraries for the Erlang programming language. In versions prior to OTP-27.3.4 (for OTP-27), OTP-26.2.5.12 (for OTP-26), and OTP-25.3.2.21 (for OTP-25), Erlang/OTP SSH fails to enforce strict KEX handshake hardening measures by allowing optional messages to be exchanged. This allows a Man-in-the-Middle attacker to inject these messages in a connection during the handshake. This issue has been patched in versions OTP-27.3.4 (for OTP-27), OTP-26.2.5.12 (for OTP-26), and OTP-25.3.2.21 (for OTP-25).

AI-Powered Analysis

AILast updated: 07/05/2025, 03:40:38 UTC

Technical Analysis

CVE-2025-46712 is a vulnerability identified in the Erlang/OTP platform, specifically affecting the SSH implementation in versions prior to OTP-27.3.4, OTP-26.2.5.12, and OTP-25.3.2.21. Erlang/OTP is a widely used set of libraries and runtime system for the Erlang programming language, often employed in telecommunications, messaging systems, and distributed applications. The vulnerability arises from a failure to enforce strict key exchange (KEX) handshake hardening measures during the SSH connection establishment phase. Specifically, the affected versions allow optional messages to be exchanged during the handshake process, which deviates from expected behavior. This flaw enables a Man-in-the-Middle (MitM) attacker to inject these optional messages into the SSH handshake, potentially manipulating the connection setup. Although the vulnerability does not directly compromise confidentiality or availability, it impacts the integrity of the SSH handshake, which could be leveraged in more complex attack chains or to weaken the security guarantees of the SSH session. The issue has been addressed in the patched versions OTP-27.3.4, OTP-26.2.5.12, and OTP-25.3.2.21, which enforce stricter handshake validation to prevent message injection. The CVSS score is 3.7 (low severity), reflecting the limited impact and the requirement for network-level MitM capabilities and high attack complexity. No known exploits are currently reported in the wild.

Potential Impact

For European organizations, the impact of this vulnerability is generally low but context-dependent. Erlang/OTP is integral to many telecom infrastructures, messaging platforms, and distributed systems, some of which are critical in sectors such as telecommunications, finance, and industrial control. A successful MitM attack during the SSH handshake could allow attackers to interfere with session establishment, potentially enabling further exploitation or surveillance if combined with other vulnerabilities or misconfigurations. However, the vulnerability does not directly expose sensitive data or cause denial of service. Organizations relying on Erlang/OTP for secure communications should consider the risk of targeted attacks, especially in environments where network-level adversaries exist or where SSH is used for critical administrative access. The low CVSS score suggests limited immediate risk, but the presence of this flaw could be a stepping stone in multi-stage attacks against critical infrastructure components prevalent in Europe.

Mitigation Recommendations

European organizations should prioritize upgrading Erlang/OTP to the fixed versions: OTP-27.3.4, OTP-26.2.5.12, or OTP-25.3.2.21, depending on their current version. Beyond patching, network-level mitigations include enforcing strict SSH policies such as using certificate-based authentication, enabling SSH fingerprint verification, and employing network segmentation to limit exposure of SSH services to untrusted networks. Deploying intrusion detection systems (IDS) capable of detecting anomalous SSH handshake behaviors may help identify attempted MitM attacks exploiting this vulnerability. Additionally, organizations should conduct regular audits of Erlang/OTP deployments and SSH configurations to ensure compliance with security best practices. For critical systems, consider using out-of-band management channels or VPNs to reduce the risk of MitM attacks on SSH sessions. Finally, monitoring vendor advisories for any emerging exploit reports or additional patches is recommended.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-04-28T20:56:09.082Z
Cisa Enriched
true
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d9818c4522896dcbd7ea8

Added to database: 5/21/2025, 9:08:40 AM

Last enriched: 7/5/2025, 3:40:38 AM

Last updated: 8/10/2025, 4:52:39 PM

Views: 17

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats