CVE-2025-46712Erlang/OTP SSH Has Strict KEX Violations
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).
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | erlang | Fixed | 1:27.3.4.1+dfsg-1 | UBUNTU-CVE-2025-46712 |
| Ubuntu 24.04 | erlang | Fixed | 1:25.3.2.8+dfsg-1ubuntu4.4 | UBUNTU-CVE-2025-46712 |
| Ubuntu 22.04 | erlang | Fixed | 1:24.2.1+dfsg-1ubuntu0.5 | UBUNTU-CVE-2025-46712 |
| Ubuntu 20.04 | erlang | Fix pending | UBUNTU-CVE-2025-46712 | |
| Ubuntu 18.04 | erlang | Fix pending | UBUNTU-CVE-2025-46712 | |
| Ubuntu 16.04 | erlang | Fix pending | UBUNTU-CVE-2025-46712 | |
| Ubuntu 14.04 | erlang | Fix pending | UBUNTU-CVE-2025-46712 | |
| Debian 14 | erlang | Fixed | 1:27.3.4+dfsg-1 | DEBIAN-CVE-2025-46712 |
| Debian 13 | erlang | Fixed | 1:27.3.4+dfsg-1 | DEBIAN-CVE-2025-46712 |
| Debian 12 | erlang | Fixed | 1:25.2.3+dfsg-1+deb12u2 | DEBIAN-CVE-2025-46712 |
| Alpine Linux 3.21 | erlang | Fixed | 26.2.5.12-r0 | ALPINE-CVE-2025-46712 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- erlang otp: affected: >= OTP 27.0, < OTP 27.3.4, >= OTP 26.2.1, < OTP 26.2.5.12, < OTP 25.3.2.21
References
- https://github.com/erlang/otp/security/advisories/GHSA-934x-xq38-hhqf
- https://github.com/erlang/otp/commit/e4b56a9f4a511aa9990dd86c16c61439c828df83
- https://github.com/erlang/otp/releases/tag/OTP-25.3.2.21
- https://github.com/erlang/otp/releases/tag/OTP-26.2.5.12
- https://github.com/erlang/otp/releases/tag/OTP-27.3.4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.