1. Accueil
  2. Vulnérabilités
  3. CVE-2026-48858

CVE-2026-48858

ftp client PASV response IP not validated against control peer, enabling SSRF and FTP bounce attacks

Publiée le 10 juin 2026 · modifiée le 20 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 35/100

Résumé

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 OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to ftp from 1.0 before 1.2.3.1, 1.2.4.1, and 1.2.6, and inets from 5.10.4 before 7.0.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Erlang (10 ligne(s))
Erlang
ProduitVersionsCorrigé dansSource
OTP de 17.4 (inclus) à 27.3.4.13 (exclu) 27.3.4.13 CNA (éditeur ou attributeur)
OTP de 5.10.4 (inclus) à 7.0 (exclu) — CNA (éditeur ou attributeur)
OTP de 1.0 (inclus) à 1.2.3.1 (exclu) 1.2.3.1 CNA (éditeur ou attributeur)
Erlang/inets de 5.10.4 (inclus) à 7.0 (exclu) — NVD
Erlang/otp de 17.4 (inclus) à 27.3.4.13 (exclu) — NVD
Erlang/otp de 28.0 (inclus) à 28.5.0.2 (exclu) — NVD
Erlang/otp de 29.0 (inclus) à 29.0.2 (exclu) — NVD
Ftp de 1.0 (inclus) à 1.2.3.1 (exclu) — NVD
Ftp de 1.2.4 (inclus) à 1.2.4.1 (exclu) — NVD
Ftp de 1.2.5 (inclus) à 1.2.6 (exclu) — NVD

Correctif

Mise à jour — 1.2.3.1, 27.3.4.13source officielle

Source : CNA (éditeur ou attributeur)

Contournement

Contournementsource officielle

Pass {ftp_extension, true} to ftp:open/2 to use EPSV instead of PASV. Alternatively, pass {mode, active} to use active mode, or pass {ipfamily, inet6} to force IPv6, both of which bypass the vulnerable PASV path.

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N (CVSS 3.1, NVD)
Faiblesse
CWE-918 · Requête côté serveur (SSRF) / CSRF

Comment sont obtenues et calculées ces données