Vulnerability · Published Mar 28, 2025 · Assigned by GitHub_M
CVE-2025-30211KEX init error results with excessive memory usage
High 7.5
In plain English
A high-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 41% 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. Prior to versions OTP-27.3.1, 26.2.5.10, and 25.3.2.19, a maliciously formed KEX init message can result with high memory usage. Implementation does not verify RFC specified limits on algorithm names (64 characters) provided in KEX init message. Big KEX init packet may lead to inefficient processing of the error data. As a result, large amount of memory will be allocated for processing malicious data. Versions OTP-27.3.1, OTP-26.2.5.10, and OTP-25.3.2.19 fix the issue. Some workarounds are available. One may set option `parallel_login` to `false` and/or reduce the `max_sessions` option.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | erlang | 1:25.2.3+dfsg-1+deb12u1 | DEBIAN-CVE-2025-30211 |
| Debian:12 | erlang | 1:25.2.3+dfsg-1+deb12u1 | DSA-5906-1 |
| Debian:13 | erlang | 1:27.3.1+dfsg-1 | DEBIAN-CVE-2025-30211 |
| Debian:14 | erlang | 1:27.3.1+dfsg-1 | DEBIAN-CVE-2025-30211 |
| Ubuntu:22.04:LTS | erlang | 1:24.2.1+dfsg-1ubuntu0.3 | USN-7425-1 |
| Ubuntu:22.04:LTS | erlang | 1:24.2.1+dfsg-1ubuntu0.8 | USN-8901-1 |
| Ubuntu:22.04:LTS | erlang | 1:24.2.1+dfsg-1ubuntu0.3 | UBUNTU-CVE-2025-30211 |
| Ubuntu:24.04:LTS | erlang | 1:25.3.2.8+dfsg-1ubuntu4.8 | USN-8901-1 |
| Ubuntu:24.04:LTS | erlang | 1:25.3.2.8+dfsg-1ubuntu4.2 | USN-7425-1 |
| Ubuntu:24.04:LTS | erlang | 1:25.3.2.8+dfsg-1ubuntu4.2 | UBUNTU-CVE-2025-30211 |
| Ubuntu:25.10 | erlang | 1:27.3+dfsg-1ubuntu1 | UBUNTU-CVE-2025-30211 |
| Ubuntu:26.04:LTS | erlang | 1:27.3.4.6+dfsg-1ubuntu0.2 | USN-8901-1 |
Affected products (as reported)
Weakness: CWE-789 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H