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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 59.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12erlang1:25.2.3+dfsg-1+deb12u1DEBIAN-CVE-2025-30211
Debian:12erlang1:25.2.3+dfsg-1+deb12u1DSA-5906-1
Debian:13erlang1:27.3.1+dfsg-1DEBIAN-CVE-2025-30211
Debian:14erlang1:27.3.1+dfsg-1DEBIAN-CVE-2025-30211
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.3USN-7425-1
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.8USN-8901-1
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.3UBUNTU-CVE-2025-30211
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.8USN-8901-1
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.2USN-7425-1
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.2UBUNTU-CVE-2025-30211
Ubuntu:25.10erlang1:27.3+dfsg-1ubuntu1UBUNTU-CVE-2025-30211
Ubuntu:26.04:LTSerlang1:27.3.4.6+dfsg-1ubuntu0.2USN-8901-1

Affected products (as reported)

VendorProductVersions
erlang otp < OTP-27.3.1< OTP-26.2.5.10< OTP-25.3.2.19

Weakness: CWE-789 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References