Uncontrolled Memory Allocation Affecting erlang package, versions <1:22.2.7+dfsg-1ubuntu0.4


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-ERLANG-9576102
  • published9 Apr 2025
  • disclosed28 Mar 2025

Introduced: 28 Mar 2025

NewCVE-2025-30211  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 erlang to version 1:22.2.7+dfsg-1ubuntu0.4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream erlang package and not the erlang package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1