Vulnerability · Published Feb 20, 2025 · Assigned by GitHub_M

CVE-2025-26618SSH SFTP packet size not verified properly in Erlang OTP

High 7.0

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 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

Erlang is a programming language and runtime system for building massively scalable soft real-time systems with requirements on high availability. OTP is a set of Erlang libraries, which consists of the Erlang runtime system, a number of ready-to-use components mainly written in Erlang. Packet size is not verified properly for SFTP packets. As a result when multiple SSH packets (conforming to max SSH packet size) are received by ssh, they might be combined into an SFTP packet which will exceed the max allowed packet size and potentially cause large amount of memory to be allocated. Note that situation described above can only happen for successfully authenticated users after completing the SSH handshake. This issue has been patched in OTP versions 27.2.4, 26.2.5.9, and 25.3.2.18. There are no known workarounds for this vulnerability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12erlang1:25.2.3+dfsg-1+deb12u1DEBIAN-CVE-2025-26618
Debian:12erlang1:25.2.3+dfsg-1+deb12u1DSA-5906-1
Debian:13erlang1:27.2.4+dfsg-1DEBIAN-CVE-2025-26618
Debian:14erlang1:27.2.4+dfsg-1DEBIAN-CVE-2025-26618
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.2USN-7313-1
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.8USN-8901-1
Ubuntu:22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.2UBUNTU-CVE-2025-26618
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.8USN-8901-1
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.1USN-7313-1
Ubuntu:24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.1UBUNTU-CVE-2025-26618
Ubuntu:26.04:LTSerlang1:27.3.4.6+dfsg-1ubuntu0.2USN-8901-1

Affected products (as reported)

VendorProductVersions
erlang otp >= OTP-27.0.0, < OTP-27.2.4>= OTP-26.0.0.0, < OTP-26.2.5.9< OTP-25.3.2.18

Weakness: CWE-789 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H

References