Skip to content
OpenAdvisories
High · 7.0 CVE-2025-26618 EUVD-2025-5086

SSH SFTP packet size not verified properly in Erlang OTP

Published Feb 20, 2025 · Updated Nov 3, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
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 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 erlang 1:27.2.4+dfsg-1 —
Debian 13 erlang 1:27.2.4+dfsg-1 —
Debian 12 erlang 1:25.2.3+dfsg-1+deb12u1 DSA-5906-1
Debian 11 erlang 1:23.2.6+dfsg-1+deb11u2 DLA-4132-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS erlang 1:27.3.4.6+dfsg-1ubuntu0.2 USN-8901-1
Ubuntu 24.04 LTS erlang 1:25.3.2.8+dfsg-1ubuntu4.1 USN-8901-1, USN-7313-1
Ubuntu 22.04 LTS erlang 1:24.2.1+dfsg-1ubuntu0.2 USN-8901-1, USN-7313-1
Ubuntu 20.04 LTS erlang 1:22.2.7+dfsg-1ubuntu0.3 USN-7313-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS erlang 1:22.2.7+dfsg-1ubuntu0.5+esm3 USN-8901-1
Ubuntu Pro 18.04 LTS erlang 1:20.2.2+dfsg-1ubuntu2+esm4 USN-8901-1
Ubuntu Pro 16.04 LTS erlang 1:18.3-dfsg-1ubuntu3.1+esm4 USN-8901-1
Ubuntu Pro 14.04 LTS erlang 1:16.b.3-dfsg-1ubuntu2.2+esm3 USN-8901-1
ReleasePackageFixed inAdvisory
SLES 15 SP6 erlang 23.3.4.19-150300.3.17.1 SUSE-SU-2025:0901-1
SLES 15 SP6 erlang26 26.2.1-150300.7.8.1 SUSE-SU-2025:1051-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed erlang 27.2.4-2.1 openSUSE-SU-2025:14879-1
openSUSE Tumbleweed erlang27 27.1.3-3.1 openSUSE-SU-2026:11560-1
openSUSE Leap 15.6 erlang 23.3.4.19-150300.3.17.1 SUSE-SU-2025:0901-1
openSUSE Leap 15.6 erlang26 26.2.1-150300.7.8.1 SUSE-SU-2025:1051-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 erlang 26.2.5.9-1 —
Azure Linux 2 (CBL-Mariner) erlang 25.2-3 —

Advisories 9

References