Vulnerability · Published Sep 11, 2025 · Assigned by EEF
CVE-2025-48040Malicious Key Exchange Messages may Lead to Excessive Resource Consumption
Medium 6.9
In plain English
A medium-severity uncontrolled resource consumption 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.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Uncontrolled Resource Consumption vulnerability in Erlang OTP ssh (ssh_sftp modules) allows Excessive Allocation, Flooding. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl. This issue affects OTP from OTP 17.0 before OTP 28.0.3, OTP 27.3.4.3 and OTP 26.2.5.15, corresponding to ssh from 3.0.1 before 5.3.3, 5.2.11.3 and 5.1.4.12.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | erlang | 1:25.2.3+dfsg-1+deb12u4 | DEBIAN-CVE-2025-48040 |
| Debian:13 | erlang | 1:27.3.4.1+dfsg-1+deb13u1 | DEBIAN-CVE-2025-48040 |
| Debian:14 | erlang | 1:27.3.4.3+dfsg-1 | DEBIAN-CVE-2025-48040 |
| Ubuntu:22.04:LTS | erlang | 1:24.2.1+dfsg-1ubuntu0.6 | USN-7831-1 |
| Ubuntu:22.04:LTS | erlang | 1:24.2.1+dfsg-1ubuntu0.6 | UBUNTU-CVE-2025-48040 |
| Ubuntu:24.04:LTS | erlang | 1:25.3.2.8+dfsg-1ubuntu4.5 | USN-7831-1 |
| Ubuntu:24.04:LTS | erlang | 1:25.3.2.8+dfsg-1ubuntu4.5 | UBUNTU-CVE-2025-48040 |
| Ubuntu:25.10 | erlang | 1:27.3.4.1+dfsg-1ubuntu0.1 | UBUNTU-CVE-2025-48040 |
| Ubuntu:25.10 | erlang | 1:27.3.4.1+dfsg-1ubuntu0.1 | USN-7831-1 |
Affected products (as reported)
Weakness: CWE-400, CWE-770 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/erlang/otp/security/advisories/GHSA-h7rg-6rjg-4cph vendor-advisory, related
- https://cna.erlef.org/cves/CVE-2025-48040.html related
- https://osv.dev/vulnerability/EEF-CVE-2025-48040 related
- https://www.erlang.org/doc/system/versions.html#order-of-versions x_version-scheme
- https://github.com/erlang/otp/pull/10162 patch
- https://github.com/erlang/otp/commit/7cd7abb7e19e16b027eaee6a54e1f6fbbe21181a patch
- https://github.com/erlang/otp/commit/548f1295d86d0803da884db8685cc16d461d0d5a patch