CVE-2025-48041
Erlang OTP vulnerability analysis and mitigation

Overview

A vulnerability in Erlang OTP's SSH SFTP module (CVE-2025-48041) affects the handling of SSHFXPOPENDIR operations. The vulnerability exists in OTP versions from 17.0 up to 28.0.3, 27.3.4.3, and 26.2.5.15, corresponding to SSH versions from 3.0.1 up to 5.3.3, 5.2.11.3, and 5.1.4.12. The issue was disclosed on September 11, 2025 (GitHub Advisory).

Technical details

The vulnerability stems from improper resource allocation control in the SSH SFTP module. While the SSHFXPOPENDIR operation doesn't allocate OS-level file handles, it creates file handles within the Erlang VM without proper limitations. This bypasses operating system-level restrictions on file handle allocation. The vulnerability has been assigned a CVSS v4 base score of 7.1 (High), with attack vector being Network, attack complexity Low, and requiring Low privileges with No user interaction (GitHub Advisory).

Impact

The primary impact of this vulnerability is on system availability. Since OS-level limitations are bypassed, the list of file handles can grow unconstrained within the Erlang VM, potentially leading to resource exhaustion that could affect overall system stability. This is specifically a server-side vulnerability that could result in degraded performance or system unavailability (GitHub Advisory).

Mitigation and workarounds

Two primary mitigation strategies are available: 1) Upgrade to the patched versions (OTP 28.0.3, 27.3.4.3, or 26.2.5.15, or their corresponding SSH versions 5.3.3, 5.2.11.3, or 5.1.4.12), 2) As a temporary workaround, limit the number of maxsessions allowed for sshd to make exploitation more complicated. The vulnerability has been patched by implementing a maxhandles option with a default value of 1000 (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Erlang OTP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-32433CRITICAL10
  • CBL MarinerCBL Mariner
  • erlang26-debugger
YesYesApr 16, 2025
CVE-2025-48041HIGH7.1
  • Erlang OTPErlang OTP
  • cpe:2.3:a:erlang:erlang\/otp
NoYesSep 11, 2025
CVE-2025-48040MEDIUM6.9
  • Erlang OTPErlang OTP
  • cpe:2.3:a:erlang:erlang\/otp
NoYesSep 11, 2025
CVE-2025-48039MEDIUM5.3
  • Erlang OTPErlang OTP
  • erlang
NoYesSep 11, 2025
CVE-2025-48038MEDIUM5.3
  • Erlang OTPErlang OTP
  • cpe:2.3:a:erlang:erlang\/otp
NoYesSep 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management