CVE-2025-26618 SSH SFTP packet size not verified properly in Erlang OTP
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux erlang(Azure Linux 3.0) | < 26.2.5.9-1 | 26.2.5.9-1 | Fixed |
| cbl-mariner erlang(CBL-Mariner 2.0) | < 25.2-3 | 25.2-3 | Fixed |
| debian/erlang(Debian 12) | < 1:25.2.3+dfsg-1+deb12u1; = 1:25.2.3+dfsg-1 | 1:25.2.3+dfsg-1+deb12u1 | Fixed |
| debian/erlang(Debian 13) | < 1:27.2.4+dfsg-1 | 1:27.2.4+dfsg-1 | Fixed |
| debian/erlang(Debian 14) | < 1:27.2.4+dfsg-1 | 1:27.2.4+dfsg-1 | Fixed |
| ubuntu/erlang(Ubuntu 22.04) | < 1:24.2.1+dfsg-1ubuntu0.2 | 1:24.2.1+dfsg-1ubuntu0.2 | Fixed |
| ubuntu/erlang(Ubuntu 24.04) | < 1:25.3.2.8+dfsg-1ubuntu4.1 | 1:25.3.2.8+dfsg-1ubuntu4.1 | Fixed |
| erlang otp | = < OTP-25.3.2.18; = >= OTP-26.0.0.0, < OTP-26.2.5.9; = >= OTP-27.0.0, < OTP-27.2.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner erlang(CBL-Mariner:2.0) | < 25.2-3 | 25.2-3 |
| azure linux erlang(Azure Linux:3.0) | < 26.2.5.9-1 | 26.2.5.9-1 |
| debian/erlang(Debian:12) | < 1:25.2.3+dfsg-1+deb12u1 | 1:25.2.3+dfsg-1+deb12u1 |
| debian/erlang(Debian:12) | = 1:25.2.3+dfsg-1 | No fix listed |
| debian/erlang(Debian:13) | < 1:27.2.4+dfsg-1 | 1:27.2.4+dfsg-1 |
| debian/erlang(Debian:14) | < 1:27.2.4+dfsg-1 | 1:27.2.4+dfsg-1 |
| erlang otp | = >= OTP-27.0.0, < OTP-27.2.4 | No fix listed |
| erlang otp | = >= OTP-26.0.0.0, < OTP-26.2.5.9 | No fix listed |
| erlang otp | = < OTP-25.3.2.18 | No fix listed |
| ubuntu/erlang(Ubuntu:22.04) | < 1:24.2.1+dfsg-1ubuntu0.2 | 1:24.2.1+dfsg-1ubuntu0.2 |
| ubuntu/erlang(Ubuntu:24.04) | < 1:25.3.2.8+dfsg-1ubuntu4.1 | 1:25.3.2.8+dfsg-1ubuntu4.1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-26618 vendor-advisory
- https://github.com/erlang/otp/security/advisories/GHSA-78cv-45vx-q6fr
- https://github.com/erlang/otp/commit/0ed2573cbd55c92e9125c9dc70fa1ca7fed82872
- erlang.org vendor-advisory
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7313-1 vendor-advisory
- USN-8901-1 vendor-advisory
- www.cve.org