p PatchFirst

CVE-2026-48858

CVE-2026-48858 · ftp client PASV response IP not validated against control peer, enabling SSRF and FTP bounce attacks

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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 29.0.2, OTP 28.5.0.2 and OTP 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.

CVSS 6.3 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • erlang

    Versions
    • ≥ 5.10.4, < 7.0: Affected (otp)

    Update to 7.0

  • erlang

    Versions
    • ≥ 1.0: Affected; ≥ 1.2.6: Not affected; ≥ 1.2.4.1: Not affected; ≥ 1.2.3.1: Not affected (otp)

    Update to 1.2.3.1

  • erlang

    Versions
    • ≥ 17.4: Affected; ≥ 29.0.2: Not affected; ≥ 28.5.0.2: Not affected; ≥ 27.3.4.13: Not affected (otp)
    • ≥ be95772ee1fcfe71045ef070130bea7a910b81e3: Affected; ≥ 2691a806231ffd0490a8a9e20500dec0c7e73727: Not affected; ≥ 521bcfa24407ee8cb5614823cf905c37ea3aa605: Not affected (git)

    Update to 27.3.4.13

  • erlang Debian:12

    Versions
    • 1:25.2.3+dfsg-1
    • 1:25.2.3+dfsg-1+deb12u1
    • 1:25.2.3+dfsg-1+deb12u2
    • 1:25.2.3+dfsg-1+deb12u3
    • 1:25.2.3+dfsg-1+deb12u4
    • 1:25.3.2.10+dfsg-1
    • 1:25.3.2.10+dfsg-2
    • 1:25.3.2.11+dfsg-1
    • 1:25.3.2.12+dfsg-1
    • 1:25.3.2.12+dfsg-2
    • 1:25.3.2.12+dfsg-3
    • 1:25.3.2.8+dfsg-1
    • 1:26.0+dfsg-1
    • 1:26.0.1+dfsg-1
    • 1:26.0.2+dfsg-1
    • 1:26.0~rc2+dfsg-1
    • 1:26.0~rc3+dfsg-1
    • 1:26.1.2+dfsg-1
    • 1:26.2.1+dfsg-1
    • 1:26.2.4+dfsg-1
    • 1:27.0+dfsg-1
    • 1:27.0.1+dfsg-1
    • 1:27.0.1+dfsg-2
    • 1:27.0.1+dfsg-3
    • 1:27.0~rc3+dfsg-1
    • 1:27.0~rc3+dfsg-2
    • 1:27.0~rc3+dfsg-3
    • 1:27.0~rc3+dfsg-4
    • 1:27.1.2+dfsg-1
    • 1:27.2+dfsg-1
    • 1:27.2+dfsg-2
    • 1:27.2+dfsg-3~exp1
    • 1:27.2.1+dfsg-1
    • 1:27.2.1+dfsg-2
    • 1:27.2.2+dfsg-1
    • 1:27.2.3+dfsg-1
    • 1:27.2.4+dfsg-1
    • 1:27.3+dfsg-1
    • 1:27.3.1+dfsg-1
    • 1:27.3.2+dfsg-1
    • 1:27.3.3+dfsg-1
    • 1:27.3.4+dfsg-1
    • 1:27.3.4.1+dfsg-1
    • 1:27.3.4.10+dfsg-1
    • 1:27.3.4.11+dfsg-1
    • 1:27.3.4.11+dfsg-2
    • 1:27.3.4.11+dfsg-3
    • 1:27.3.4.11+dfsg-4
    • 1:27.3.4.11+dfsg-5
    • 1:27.3.4.11+dfsg-6
    • 1:27.3.4.11+dfsg-7
    • 1:27.3.4.12+dfsg-1
    • 1:27.3.4.3+dfsg-1
    • 1:27.3.4.4+dfsg-1
    • 1:27.3.4.6+dfsg-1
    • 1:27.3.4.8+dfsg-1
    • 1:27.3.4.9+dfsg-1
    • 1:28.0+dfsg-1
    • 1:28.0.1+dfsg-1
    • 1:28.0.2+dfsg-1
    • 1:28.0.4+dfsg-1
    • 1:28.1.1+dfsg-1
    • 1:28.2+dfsg-1
    • 1:28.3+dfsg-1
    • 1:28.3.1+dfsg-1
    • 1:29.0+dfsg-1
    • 1:29.0+dfsg-2
    • 1:29.0.1+dfsg-1
    • 1:29.0.2+dfsg-1
    • 1:29.0.3+dfsg-1
    • 1:29.0.4+dfsg-1
    • 1:29.0.6+dfsg-1
    • 1:29.0~rc1+dfsg-1
    • 1:29.0~rc1+dfsg-2
    • 1:29.0~rc2+dfsg-1
    • 1:29.0~rc3+dfsg-1
    • 1:29.0~rc3+dfsg-2
    • 1:29.0~rc3+dfsg-3
    • 1:29.0~rc3+dfsg-4
    • 1:29.1.1+dfsg-1
    • 1:29.1.2+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • erlang Debian:13

    Versions
    • 1:27.3.4.1+dfsg-1
    • 1:27.3.4.1+dfsg-1+deb13u1
    • 1:27.3.4.1+dfsg-1+deb13u2
    Affected ranges
    • ECOSYSTEM: < 1:27.3.4.1+dfsg-1+deb13u3

    Update to 1:27.3.4.1+dfsg-1+deb13u3

  • erlang Debian:14

    Versions
    • 1:27.3.4.1+dfsg-1
    • 1:27.3.4.10+dfsg-1
    • 1:27.3.4.11+dfsg-1
    • 1:27.3.4.11+dfsg-2
    • 1:27.3.4.11+dfsg-3
    • 1:27.3.4.11+dfsg-4
    • 1:27.3.4.11+dfsg-5
    • 1:27.3.4.11+dfsg-6
    • 1:27.3.4.11+dfsg-7
    • 1:27.3.4.12+dfsg-1
    • 1:27.3.4.3+dfsg-1
    • 1:27.3.4.4+dfsg-1
    • 1:27.3.4.6+dfsg-1
    • 1:27.3.4.8+dfsg-1
    • 1:27.3.4.9+dfsg-1
    • 1:28.0+dfsg-1
    • 1:28.0.1+dfsg-1
    • 1:28.0.2+dfsg-1
    • 1:28.0.4+dfsg-1
    • 1:28.1.1+dfsg-1
    • 1:28.2+dfsg-1
    • 1:28.3+dfsg-1
    • 1:28.3.1+dfsg-1
    • 1:29.0+dfsg-1
    • 1:29.0+dfsg-2
    • 1:29.0.1+dfsg-1
    • 1:29.0~rc1+dfsg-1
    • 1:29.0~rc1+dfsg-2
    • 1:29.0~rc2+dfsg-1
    • 1:29.0~rc3+dfsg-1
    • 1:29.0~rc3+dfsg-2
    • 1:29.0~rc3+dfsg-3
    • 1:29.0~rc3+dfsg-4
    Affected ranges
    • ECOSYSTEM: < 1:29.0.2+dfsg-1

    Update to 1:29.0.2+dfsg-1

  • erlang Ubuntu:Pro:14.04:LTS

    Versions
    • 1:16.b.1-dfsg-4ubuntu1
    • 1:16.b.2-dfsg-1ubuntu1
    • 1:16.b.2-dfsg-2ubuntu1
    • 1:16.b.3-dfsg-1ubuntu1
    • 1:16.b.3-dfsg-1ubuntu2
    • 1:16.b.3-dfsg-1ubuntu2.1
    • 1:16.b.3-dfsg-1ubuntu2.2
    • 1:16.b.3-dfsg-1ubuntu2.2+esm1
    • 1:16.b.3-dfsg-1ubuntu2.2+esm2
    Affected ranges
    • ECOSYSTEM: < 1:16.b.3-dfsg-1ubuntu2.2+esm3

    Update to 1:16.b.3-dfsg-1ubuntu2.2+esm3

  • erlang Ubuntu:Pro:16.04:LTS

    Versions
    • 1:18.0-dfsg-1ubuntu1
    • 1:18.0-dfsg-1ubuntu2
    • 1:18.2-dfsg-2ubuntu1
    • 1:18.3-dfsg-1ubuntu1
    • 1:18.3-dfsg-1ubuntu2
    • 1:18.3-dfsg-1ubuntu3
    • 1:18.3-dfsg-1ubuntu3.1
    • 1:18.3-dfsg-1ubuntu3.1+esm1
    • 1:18.3-dfsg-1ubuntu3.1+esm2
    • 1:18.3-dfsg-1ubuntu3.1+esm3
    Affected ranges
    • ECOSYSTEM: < 1:18.3-dfsg-1ubuntu3.1+esm4

    Update to 1:18.3-dfsg-1ubuntu3.1+esm4

  • erlang Ubuntu:Pro:18.04:LTS

    Versions
    • 1:20.0.4+dfsg-1ubuntu1
    • 1:20.1.2+dfsg-1ubuntu1
    • 1:20.1.3+dfsg-1ubuntu1
    • 1:20.1.4+dfsg-1ubuntu1
    • 1:20.1.5+dfsg-1ubuntu1
    • 1:20.1.6+dfsg-1ubuntu1
    • 1:20.1.7+dfsg-1ubuntu1
    • 1:20.2.1+dfsg-1ubuntu1
    • 1:20.2.2+dfsg-1ubuntu1
    • 1:20.2.2+dfsg-1ubuntu2
    • 1:20.2.2+dfsg-1ubuntu2+esm1
    • 1:20.2.2+dfsg-1ubuntu2+esm2
    • 1:20.2.2+dfsg-1ubuntu2+esm3
    Affected ranges
    • ECOSYSTEM: < 1:20.2.2+dfsg-1ubuntu2+esm4

    Update to 1:20.2.2+dfsg-1ubuntu2+esm4

  • erlang Ubuntu:Pro:20.04:LTS

    Versions
    • 1:22.0.7+dfsg-1build1
    • 1:22.2+dfsg-1
    • 1:22.2.1+dfsg-1
    • 1:22.2.2+dfsg-1
    • 1:22.2.3+dfsg-1
    • 1:22.2.3+dfsg-2
    • 1:22.2.4+dfsg-1
    • 1:22.2.7+dfsg-1
    • 1:22.2.7+dfsg-1ubuntu0.2
    • 1:22.2.7+dfsg-1ubuntu0.3
    • 1:22.2.7+dfsg-1ubuntu0.4
    • 1:22.2.7+dfsg-1ubuntu0.5
    • 1:22.2.7+dfsg-1ubuntu0.5+esm1
    • 1:22.2.7+dfsg-1ubuntu0.5+esm2
    Affected ranges
    • ECOSYSTEM: < 1:22.2.7+dfsg-1ubuntu0.5+esm3

    Update to 1:22.2.7+dfsg-1ubuntu0.5+esm3

  • erlang Ubuntu:22.04:LTS

    Versions
    • 1:23.2.6+dfsg-1build1
    • 1:24.1.1+dfsg-1
    • 1:24.1.4+dfsg-1
    • 1:24.1.5+dfsg-1
    • 1:24.1.5+dfsg-1ubuntu1
    • 1:24.2+dfsg-1
    • 1:24.2.1+dfsg-1
    • 1:24.2.1+dfsg-1ubuntu0.1
    • 1:24.2.1+dfsg-1ubuntu0.2
    • 1:24.2.1+dfsg-1ubuntu0.3
    • 1:24.2.1+dfsg-1ubuntu0.4
    • 1:24.2.1+dfsg-1ubuntu0.5
    • 1:24.2.1+dfsg-1ubuntu0.6
    • 1:24.2.1+dfsg-1ubuntu0.7
    Affected ranges
    • ECOSYSTEM: < 1:24.2.1+dfsg-1ubuntu0.8

    Update to 1:24.2.1+dfsg-1ubuntu0.8

  • erlang Ubuntu:24.04:LTS

    Versions
    • 1:25.2.3+dfsg-1
    • 1:25.3.2.8+dfsg-1
    • 1:25.3.2.8+dfsg-1ubuntu1
    • 1:25.3.2.8+dfsg-1ubuntu3
    • 1:25.3.2.8+dfsg-1ubuntu4
    • 1:25.3.2.8+dfsg-1ubuntu4.1
    • 1:25.3.2.8+dfsg-1ubuntu4.2
    • 1:25.3.2.8+dfsg-1ubuntu4.3
    • 1:25.3.2.8+dfsg-1ubuntu4.4
    • 1:25.3.2.8+dfsg-1ubuntu4.5
    • 1:25.3.2.8+dfsg-1ubuntu4.6
    • 1:25.3.2.8+dfsg-1ubuntu4.7
    Affected ranges
    • ECOSYSTEM: < 1:25.3.2.8+dfsg-1ubuntu4.8

    Update to 1:25.3.2.8+dfsg-1ubuntu4.8

  • erlang Ubuntu:25.10

    Versions
    • 1:27.3+dfsg-1ubuntu1
    • 1:27.3+dfsg-1ubuntu1.1
    • 1:27.3.4.1+dfsg-1
    • 1:27.3.4.1+dfsg-1build1
    • 1:27.3.4.1+dfsg-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • erlang Ubuntu:26.04:LTS

    Versions
    • 1:27.3.4.1+dfsg-1build1
    • 1:27.3.4.3+dfsg-1
    • 1:27.3.4.4+dfsg-1
    • 1:27.3.4.6+dfsg-1
    • 1:27.3.4.6+dfsg-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: < 1:27.3.4.6+dfsg-1ubuntu0.2

    Update to 1:27.3.4.6+dfsg-1ubuntu0.2

Original sources

Check your server →