# CVE-2025-48040: Malicious Key Exchange Messages may Lead to Excessive Resource Consumption

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **CWE:** CWE-400, CWE-770
- **Published:** 2025-09-11T08:14:19.671Z
- **Modified:** 2026-11-20T06:17:15.043Z

## Who should check

- Anyone running Erlang OTP \>= 3.0.1, \< \*
- Anyone running Erlang OTP \>= 17.0, \< \*
- Anyone running Erlang OTP \>= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, \< \*

## 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 26.2.5.15, OTP 27.3.4.3, and OTP 28.0.3, corresponding to ssh from 3.0.1 before 5.1.4.12, 5.2.11.3, and 5.3.3.

## Affected and fixed versions

- Erlang OTP: \>= 3.0.1, \< \* (cvelist)
- Erlang OTP: \>= 17.0, \< \* (cvelist)
- Erlang OTP: \>= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, \< \* (cvelist)

## Mitigation

- Vendor workaround: \* set option parallel\_login to false
- \* reduce max\_sessions option

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-48040. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-48040.md
Affected: Erlang OTP >= 3.0.1, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, < *
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-48040 being exploited?

There is no confirmed exploitation: CVE-2025-48040 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-48040?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-48040?

Erlang OTP \>= 3.0.1, \< \*; Erlang OTP \>= 17.0, \< \*; Erlang OTP \>= 07b8f441ca711f9812fad9e9115bab3c3aa92f79, \< \*.

### Is there a fix for CVE-2025-48040?

No fixed version is listed in the sources yet. Vendor workaround: \* set option parallel\_login to false \* reduce max\_sessions option

### How do I check if I'm affected by CVE-2025-48040?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-h7rg-6rjg-4cph>
- patch: <https://github.com/erlang/otp/pull/10162>
- patch: <https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79>
- patch: <https://github.com/erlang/otp/commit/548f1295d86d0803da884db8685cc16d461d0d5a>
- patch: <https://github.com/erlang/otp/commit/7cd7abb7e19e16b027eaee6a54e1f6fbbe21181a>
- other: <https://cna.erlef.org/cves/CVE-2025-48040.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2025-48040>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-48040>

HTML: <https://flawdb.com/CVE-2025-48040> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-48040>
