CVE-2025-30211: KEX init error results with excessive memory usage

Published Mar 28, 2025
·
Updated

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 parallellogin to false and/or reduce the maxsessions option.

Other sources

KEX init error results with excessive memory usage

Microsoft

Affected Software

6 affected componentsFixes available
debian/erlang<=1:23.2.6+dfsg-1+deb11u1, <=1:25.2.3+dfsg-1
1:27.3.1+dfsg-11:27.3.2+dfsg-1
Erlang OTP<27.3.1, <26.2.5.10, <25.3.2.19
Microsoft cbl2 erlang 25.2-3<25.2-4
25.2-4
Microsoft cbl2 erlang 25.2-4<25.2-4
25.2-4
Microsoft azl3 erlang 26.2.5.9-1<26.2.5.10-1
26.2.5.10-1
Microsoft azl3 erlang 26.2.5.10-1<26.2.5.10-1
26.2.5.10-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/erlang to a version that resolves this vulnerability.

    Fixed in 1:27.3.1+dfsg-1Fixed in 1:27.3.2+dfsg-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 25.2-4
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 26.2.5.10-1
  4. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in OTP-27.3.1
  5. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in OTP-26.2.5.10
  6. Upgrade

    Upgrade Erlang/OTP to a version that resolves this vulnerability.

    Fixed in OTP-25.3.2.19
  7. Configuration

    Set option `parallel_login` to `false` to mitigate excessive memory usage from a maliciously formed KEX init message.

    Erlang/OTP parallel_login = false
  8. Configuration

    Reduce the `max_sessions` option to mitigate excessive memory usage from a maliciously formed KEX init message.

    Erlang/OTP max_sessions = reduced

Event History

Mar 28, 2025
CVE Published
via MITRE·02:55 PM
Data Sourced
via MITRE·02:55 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Apr 8, 2025
Data Sourced
via Ubuntu·07:49 PM
RemedyDescriptionSeverityAffected Software
Apr 9, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-30211?

CVE-2025-30211 is considered a high-severity vulnerability due to its potential impact on memory usage and denial of service.

2

How do I fix CVE-2025-30211?

To fix CVE-2025-30211, upgrade to Erlang/OTP version OTP-27.3.1, 26.2.5.10, or 25.3.2.19 or later.

3

What versions of Erlang/OTP are affected by CVE-2025-30211?

CVE-2025-30211 affects versions of Erlang/OTP prior to OTP-27.3.1, 26.2.5.10, and 25.3.2.19.

4

How does CVE-2025-30211 affect the performance of applications?

CVE-2025-30211 can lead to high memory usage by applications using affected versions of Erlang/OTP, potentially causing slowdowns or crashes.

5

Is CVE-2025-30211 a remote code execution vulnerability?

CVE-2025-30211 is not a remote code execution vulnerability but can lead to denial of service due to excessive resource consumption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203