CVE-2025-48041

SSH_FXP_OPENDIR may Lead to Exhaustion of File Handles

Published Sep 11, 2025 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
Allocation of Resources Without Limits or Throttling 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.

Analysis

AI-generated

Technical impact

The flaw lies in Erlang OTP’s SSH SFTP server (ssh_sftpd). The vulnerability is described as an allocation of resources without limits or throttling that allows excessive allocation and flooding in the ssh_sftp modules. An attacker who can initiate an SFTP session can repeatedly request directory listings (SSH_FXP_OPENDIR). Each request opens a file handle that stays open until the SFTP session ends. In a long‑running session, a malicious client can exhaust the process’s file descriptor table, causing the SSH daemon to become unresponsive or fail, which can disrupt other services on the host. This issue affects OTP 17.0 up to, but not including, 28.0.3, mapping to SSH packages 3.0.1 to 5.3.3, and is identified by the CWE‑400 and CWE‑770 weaknesses.

Affected Systems

Affected installations include Erlang OTP from version 17.0 up to, but not including, 28.0.3, specifically versions 26.2.5.15, 27.3.4.3, and 28.0.3. The corresponding SSH modules for these OTP releases are the ssh packages from 3.0.1 through 5.3.3, 5.2.11.3, and 5.1.4.12 respectively. Using the OTP sshd with the SFTP server component on any of these releases exposes users to this vulnerability, especially when SFTP services are available to untrusted or authenticated clients.

Risk and Exploitability

The CVE description describes resource exhaustion via uncontrolled file handle allocation, but does not explicitly state authentication prerequisites. It is inferred that an attacker would need to access an SFTP session because the vulnerability resides in the ssh_sftp module, which is only reachable after authentication. The attacker can repeatedly issue SFTP directory requests, causing the OTP sshd process to open many file handles until the system exhausts resources. The CVSS score of 7.1 indicates a high impact, while the EPSS score below 1% indicates a low practical exploitation probability. The vulnerability is not listed in CISA KEV. Mitigation can be achieved by disabling or limiting SFTP usage; without an official patch the risk remains until a fixed OTP version is released.

Remediation

Vendor Workaround

* disabling SFTP * limiting number of max_sessions allowed for sshd, so exploiting becomes more complicated


OpenCVE Recommended Actions

  • Disable SFTP in the Erlang OTP sshd configuration to eliminate the vulnerable operation.
  • Configure the sshd max_sessions parameter to limit concurrent SFTP sessions, reducing the potential for file handle exhaustion.
  • Monitor system resource usage for abnormal file handle counts and apply any future patches once they become available.

Generated by OpenCVE AI on November 15, 2026 at 13:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4376-1 erlang security update
EUVD EUVD EUVD-2025-27676 Allocation of Resources Without Limits or Throttling 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 form OTP 17.0 until OTP 28.0.3, OTP 27.3.4.3 and 26.2.5.15 corresponding to ssh from 3.0.1 until 5.3.3, 5.2.11.3 and 5.1.4.12.
History
Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling 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. Allocation of Resources Without Limits or Throttling 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.
References
Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling 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 until OTP 28.0.3, OTP 27.3.4.3 and 26.2.5.15 corresponding to ssh from 3.0.1 until 5.3.3, 5.2.11.3 and 5.1.4.12. Allocation of Resources Without Limits or Throttling 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.
Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling 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 form OTP 17.0 until OTP 28.0.3, OTP 27.3.4.3 and 26.2.5.15 corresponding to ssh from 3.0.1 until 5.3.3, 5.2.11.3 and 5.1.4.12. Allocation of Resources Without Limits or Throttling 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 until OTP 28.0.3, OTP 27.3.4.3 and 26.2.5.15 corresponding to ssh from 3.0.1 until 5.3.3, 5.2.11.3 and 5.1.4.12.
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling 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 form OTP 17.0 until OTP 28.0.3, OTP 27.3.4.3 and 26.2.5.15 corresponding to ssh from 3.0.1 until 5.3.3, 5.2.11.3 and 5.1.4.12.
Title SSH_FXP_OPENDIR may Lead to Exhaustion of File Handles
First Time appeared Erlang
Erlang erlang\/otp
Weaknesses CWE-400
CWE-770
CPEs cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Vendors & Products Erlang
Erlang erlang\/otp
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 11, 2026, 7:51 PM
Reserved
May 15, 2025, 8:40 AM
Status
Deferred
Published
Sep 11, 2025, 9:15 AM
Modified
Nov 13, 2026, 7:10 PM
Severity
Moderate
Public date
Sep 11, 2025, 8:14 AM