Skip to main content

Erlang/OTP ftp EUVDEUVD-2026-36055

| CVE-2026-48858 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-10 EEF
Medium
Disputed · 6.3 Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operate or compromise target FTP server
  2. Delivery
    Client issues PASV command in passive IPv4 mode
  3. Exploit
    Inject crafted 227 response advertising internal target IP and port
  4. Execution
    Erlang ftp client opens data channel to redirected internal host
  5. Impact
    Exfiltrate response data from internal service or deliver file content to internal target

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerable code path is activated by the default ftp client configuration: mode=passive, ipfamily=inet, and ftp_extension=false. No authentication is required from the attacker's perspective (PR:N per CVSS 4.0), but Attack Requirements are present (AT:P): the attacker must control or have compromised the FTP server that the target Erlang application connects to, or occupy a man-in-the-middle position on the FTP control connection. On read operations (ftp:ls, ftp:nlist, ftp:recv), data from the redirected internal host is returned to the caller; on write operations (ftp:send, ftp:append), the application's file data is sent to the redirected target. Exploitation is limited to clients using IPv4 passive mode - applications configured with ftp_extension=true (forcing EPSV) or ipfamily=inet6 follow code paths that already validate the IP against the control connection peer and are not vulnerable. Since ftp_extension defaults to false, the overwhelming majority of Erlang ftp deployments in passive IPv4 mode are affected by default.

Impact

The CVSS 4.0 score of 6.3 reflects network reachability (AV:N), no required privileges (PR:N), no user interaction (UI:N), but Attack Requirements present (AT:P) - acknowledging that a malicious or compromised FTP server must be in the connection path. Confidentiality and integrity impact are rated low for both the vulnerable system and downstream scope, which accurately captures that the attacker pivots through the client rather than directly compromising it. EPSS data was not provided in the input, limiting exploitation probability quantification. No active exploitation is confirmed (not in CISA KEV). However, a fully functional proof-of-concept - including a complete malicious FTP server implementation - is publicly available in the upstream fix commit, which substantially elevates practical risk beyond what the raw CVSS score suggests. Real-world severity is highly context-dependent: Erlang applications that connect to untrusted or third-party FTP servers (e.g., aggregators, data pipelines fetching from external sources) are directly and immediately exposed, while those connecting only to internally controlled servers face negligible external exploitation risk. On read operations the attacker receives data from the redirected internal host; on write operations the Erlang application's data is exfiltrated to the redirected target - both paths can reach cloud metadata endpoints (e.g., 169.254.169.254) or internal APIs. The ftp application's pending deprecation and removal in OTP-30 does not reduce near-term risk.

Exploit ScenarioDerived

An attacker who operates or has compromised an FTP server that an Erlang application connects to using default passive mode waits for the client to issue a PASV command, then responds with a crafted 227 message containing the IP of an internal target - such as the AWS instance metadata endpoint at 169.254.169.254 or an internal REST API - rather than the FTP server's own address. The Erlang ftp client unconditionally opens its data channel to that internal address; on an ls or recv call, the response data from the internal service is returned to the Erlang caller, leaking sensitive internal information. A complete proof-of-concept implementing exactly this malicious FTP server behavior is publicly available in the upstream fix commit at https://github.com/erlang/otp/commit/2691a806231ffd0490a8a9e20500dec0c7e73727.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 10, 2026

SSRF and FTP bounce attacks are enabled in Erlang/OTP's ftp_internal module because the PASV handler blindly trusts the IP address returned in a server's 227 response, connecting the data channel to an attacker-controlled internal target without validating it against the control connection's actual peer address. All Erlang applications using the ftp client in its default passive IPv4 mode (ipfamily=inet, ftp_extension=false) across OTP 17.4 through pre-29.0.2 are affected, spanning both the legacy inets-bundled module and the standalone ftp application. No active exploitation has been confirmed (not in CISA KEV), but a functional proof-of-concept demonstrating the redirect attack is publicly embedded in the upstream fix commit, significantly lowering the exploitation barrier.

RemediationAI

Upgrade to one of the fixed OTP releases: OTP 29.0.2 (ftp 1.2.6), OTP 28.5.0.2 (ftp 1.2.4.1), or OTP 27.3.4.13 (ftp 1.2.3.1), available per the vendor advisory at https://github.com/erlang/otp/security/advisories/GHSA-24cv-hwgr-37fq; upstream fix commits are at https://github.com/erlang/otp/commit/2691a806231ffd0490a8a9e20500dec0c7e73727 and https://github.com/erlang/otp/commit/521bcfa24407ee8cb5614823cf905c37ea3aa605. As a compensating control where immediate upgrade is not possible, set ftp_extension=true when opening ftp connections to force use of EPSV instead of PASV - the EPSV handler already derives the IP from the control connection and is not affected; however, this requires the remote FTP server to support EPSV and may break compatibility with older servers. Alternatively, enforce network egress policy to block ftp client connections to untrusted external FTP servers, restricting connectivity to only known-good internal endpoints; this eliminates the threat vector but does not remediate the underlying flaw. Given that the ftp application is deprecated and scheduled for removal in OTP-30, migrating affected applications to SFTP or HTTP-based file transfer is the recommended long-term path and avoids the vulnerability entirely.

Affected VersionsENISA

otp 5.10.4 <7.0
otp 17.4 <*
otp be95772ee1fcfe71045ef070130bea7a910b81e3 <*
otp 1.0 <*

Affected Packages

euvd otp fix: 7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the handle_ctrl_result/2 function within ftp_internal.erl, which is part of Erlang/OTP's ftp application (CPE: cpe:2.3:a:erlang:otp). In FTP passive mode, the server sends a 227 response containing a comma-separated IP and port tuple; the client is expected to open its data connection to that address. The pre-fix PASV handler extracted the four IP octets directly from the 227 message body and passed them to gen_tcp:connect/4 - exactly the pattern RFC 2577 Section 3 warns against. The adjacent EPSV handlers in the same file correctly call peername(CSock) to derive the IP from the established control connection socket, ignoring whatever the server advertises. CWE-918 (SSRF) applies because user-controlled (server-supplied) data drives a subsequent internal network connection without sanitization. The affected code exists in two locations: lib/inets/src/ftp/ftp_internal.erl (inets 5.10.4 through 6.5, OTP 17.4 through 20.3) and lib/ftp/src/ftp_internal.erl (ftp 1.0 and later, OTP 21.0 and later). The fix replaces the extracted A1-A4 octets with the result of peername(CSock), aligning the PASV handler with the already-correct EPSV logic.

Know when Erlang gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Medium–Critical)
Vendor (EEF) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
SUSE 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Red Hat 9.3 CRITICAL

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 10, 2026 - 16:22 NVD
6.3 (MEDIUM)

DescriptionCVE.org

Server-Side Request Forgery (SSRF) vulnerability in Erlang/OTP ftp (ftp_internal module) allows FTP bounce attacks and SSRF via an unvalidated PASV response IP address.

The ftp_internal:handle_ctrl_result/2 PASV handler (mode=passive, ipfamily=inet, ftp_extension=false) extracts the IP address from the server's 227 response and passes it directly to gen_tcp:connect/4 without validating it against the control connection peer address. The adjacent EPSV handlers correctly call peername(CSock) to derive the IP from the control connection, but the PASV handler does not. A malicious or compromised FTP server can redirect the client's data connection to an arbitrary internal host and port. On read operations (ftp:ls/1,2, ftp:nlist/1,2, ftp:recv/2,3), data from the redirected target is returned to the caller. On write operations (ftp:send/2,3, ftp:append/2,3), file content is sent to the redirected target. This enables SSRF against internal hosts, cloud metadata endpoints, and FTP bounce attacks against third-party hosts.

The vulnerable path is the default configuration (mode=passive, ipfamily=inet, ftp_extension=false). RFC 2577 section 3 explicitly recommends validating the PASV response IP against the control connection peer.

The ftp application is deprecated and scheduled for removal in OTP-30.

This vulnerability is associated with program files lib/inets/src/ftp/ftp_internal.erl (inets 5.10.4 through 6.5, OTP 17.4 through 20.3) and lib/ftp/src/ftp_internal.erl (ftp 1.0 and later, OTP 21.0 and later).

This issue affects OTP from OTP 17.4 before 29.0.2, 28.5.0.2 and 27.3.4.13 corresponding to inets from 5.10.4 before 7.0 and ftp from 1.0 before 1.2.6, 1.2.4.1 and 1.2.3.1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 84% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Erlang

View all
CVE-2025-32433 CRITICAL POC
10.0 Apr 16

Erlang/OTP SSH server allows unauthenticated remote code execution by exploiting a flaw in SSH protocol message handling

CVE-2017-1000385 MEDIUM POC
5.9 Dec 12

The Erlang otp TLS server answers with different TLS alerts to different error types in the RSA PKCS #1 1.5 padding. Rat

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2020-13802 CRITICAL POC
9.8 Sep 02

Rebar3 versions 3.0.0-beta.3 to 3.13.2 are vulnerable to OS command injection via URL parameter of dependency specificat

CVE-2014-1693 HIGH POC
7.5 Dec 08

Multiple CRLF injection vulnerabilities in the FTP module in Erlang/OTP R15B03 allow context-dependent attackers to inje

CVE-2021-29221 HIGH POC
7.0 Apr 09

A local privilege escalation vulnerability was discovered in Erlang/OTP prior to version 23.2.3. Rated high severity (CV

CVE-2016-10253 CRITICAL
9.8 Mar 18

An issue was discovered in Erlang/OTP 18.x. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitab

CVE-2022-37026 CRITICAL
9.8 Sep 21

In Erlang/OTP before 23.3.4.15, 24.x before 24.3.4.2, and 25.x before 25.0.2, there is a Client Authentication Bypass in

CVE-2026-89422 CRITICAL
9.3 Sep 22

Erlang/OTP's ssl application in affected releases (OTP 22.2 through the fixed 27.3.4.18, 28.5.0.7 and 29.1.1) will compl

CVE-2026-67404 CRITICAL
9.2 Sep 23

RabbitMQ brokers that use the OAuth2 plugin can silently fall back to disabled TLS certificate verification when no CA b

CVE-2026-115693 CRITICAL
9.1 Oct 26

Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers

CVE-2026-67231 CRITICAL
9.1 Sep 23

TLS client-authentication bypass in the RabbitMQ trust-store plugin lets a remote unauthenticated attacker whose forged

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Server Applications 15 SP7 Affected
SUSE Linux Enterprise Module for Server Applications 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy