Vulnerability · Published May 8, 2025 · Assigned by GitHub_M
CVE-2025-46712Erlang/OTP SSH Has Strict KEX Violations
Low 3.7
In plain English
A low-severity security flaw in otp from erlang. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | erlang | 26.2.5.12-r0 | ALPINE-CVE-2025-46712 |
| Debian:12 | erlang | 1:25.2.3+dfsg-1+deb12u2 | DEBIAN-CVE-2025-46712 |
| Debian:13 | erlang | 1:27.3.4+dfsg-1 | DEBIAN-CVE-2025-46712 |
| Debian:14 | erlang | 1:27.3.4+dfsg-1 | DEBIAN-CVE-2025-46712 |
| Ubuntu:22.04:LTS | erlang | 1:24.2.1+dfsg-1ubuntu0.5 | USN-7656-1 |
| Ubuntu:22.04:LTS | erlang | 1:24.2.1+dfsg-1ubuntu0.5 | UBUNTU-CVE-2025-46712 |
| Ubuntu:24.04:LTS | erlang | 1:25.3.2.8+dfsg-1ubuntu4.4 | UBUNTU-CVE-2025-46712 |
| Ubuntu:24.04:LTS | erlang | 1:25.3.2.8+dfsg-1ubuntu4.4 | USN-7656-1 |
| Ubuntu:25.10 | erlang | 1:27.3.4.1+dfsg-1 | UBUNTU-CVE-2025-46712 |
Affected products (as reported)
Weakness: CWE-440 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/erlang/otp/security/advisories/GHSA-934x-xq38-hhqf x_refsource_CONFIRM
- https://github.com/erlang/otp/commit/e4b56a9f4a511aa9990dd86c16c61439c828df83 x_refsource_MISC
- https://github.com/erlang/otp/releases/tag/OTP-25.3.2.21 x_refsource_MISC
- https://github.com/erlang/otp/releases/tag/OTP-26.2.5.12 x_refsource_MISC
- https://github.com/erlang/otp/releases/tag/OTP-27.3.4 x_refsource_MISC